diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..70b4061 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,23 @@ +name: Docker Image CI + +on: + push: + branches: [ "dev" ] + pull_request: + branches: [ "dev" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build web image + run: docker build . --file TemporalAirlinesConcept.Web/Dockerfile --tag ghcr.io/Tech-Fabric/temporal-airlines-web:$(date +%s) + - name: Push image to registry + run: docker push ghcr.io/Tech-Fabric/temporal-airlines-web:$(date +%s) + + +