Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from g12-4soat/feature/pipelines-docker
Browse files Browse the repository at this point in the history
Create docker-build-ci.yml
  • Loading branch information
gabriellima09 authored Oct 17, 2023
2 parents 4e4dfb1 + 1ce54c9 commit 8e0814d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/docker-build-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build Docker Image and Docker Compose

on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Docker
uses: docker/setup-buildx-action@v1

- name: Build Docker Image
run: |
cd src/TechLanches
docker build -t techlanches-image:latest . --no-cache
- name: Run Docker Compose Build
run: docker-compose -f docker-compose.yml build --no-cache

- name: Clean up
run: docker system prune -af

0 comments on commit 8e0814d

Please sign in to comment.