mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-12 03:12:11 +08:00
.
This commit is contained in:
parent
1d1b0ae04a
commit
459366e2e8
@ -22,7 +22,6 @@
|
||||
**/.tye/
|
||||
**/secrets.dev.yaml
|
||||
**/values.dev.yaml
|
||||
!dist/
|
||||
LICENSE
|
||||
README.md
|
||||
CHANGELOG.md
|
||||
|
||||
18
.github/workflows/build-publish.yml
vendored
18
.github/workflows/build-publish.yml
vendored
@ -19,11 +19,6 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# setup Docker buld action
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
@ -38,16 +33,5 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build image and push to Docker Hub and GitHub Container Registry
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
# relative path to the place where source code with Dockerfile is located
|
||||
context: ./src/Services/Flight
|
||||
# Note: tags has to be all lower-case
|
||||
tags: |
|
||||
meysamhadeli/booking-microservices/flight:latest
|
||||
ghcr.io/meysamhadeli/booking-microservices/flight:latest
|
||||
# build on feature branches, push only on develop branch
|
||||
push: ${{ github.ref == 'refs/heads/develop' }}
|
||||
run: docker build -t meysamhadeli/booking-microservices/flight:latest -f ./src/Services/Flight/Dockerfile .
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user