This commit is contained in:
meysamhadeli 2023-01-24 22:29:00 +03:30
parent 017b29046b
commit 0c1dff25fb

View File

@ -3,7 +3,7 @@ name: build-publish
on: on:
# run it on push to the default repository branch # run it on push to the default repository branch
push: push:
branches: [develop] branches: [ develop ]
# run it during pull request # run it during pull request
pull_request: pull_request:
@ -33,14 +33,11 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image - name: Build image
run: | run: |
docker build -t ghcr.io/${{ github.repository }}/flight:latest -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" . docker build -t meysamh66/${{ github.repository }}/flight:latest -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
# docker build -t meysamh66/booking-microservices/flight:latest -f ./src/Services/Flight/Dockerfile .
- name: Publish image - name: Publish image
run: | run: |
docker push ghcr.io/${{ github.repository }}/flight:latest docker push meysamh66/${{ github.repository }}/flight:latest
# docker push meysamh66/booking-microservices/flight:latest