mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-17 16:36:25 +08:00
.
This commit is contained in:
parent
1810fbdb9a
commit
5c62c92454
28
.github/workflows/build-publish-docker.yml
vendored
28
.github/workflows/build-publish-docker.yml
vendored
@ -15,12 +15,10 @@ jobs:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Prepare Release
|
||||
id: prepare-release
|
||||
uses: semantic-release/git
|
||||
with:
|
||||
args: --dry-run
|
||||
|
||||
- name: Get Latest Tag
|
||||
run: |
|
||||
export VERSION=$(git describe --abbrev=0 --tags)
|
||||
echo "Latest Tag: $VERSION"
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v2
|
||||
@ -30,17 +28,15 @@ jobs:
|
||||
|
||||
- name: Build image
|
||||
run: |
|
||||
export VERSION=${{ steps.determine-version.outputs.next_version }}
|
||||
docker build -t meysamh66/booking-microservices-flight:$VERSION -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-identity:$VERSION -f "${{ github.workspace }}/src/Services/Identity/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-passenger:$VERSION -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-booking:$VERSION -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-flight:latest -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-identity:latest -f "${{ github.workspace }}/src/Services/Identity/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-passenger:latest -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" .
|
||||
docker build -t meysamh66/booking-microservices-booking:latest -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
||||
|
||||
- name: Publish image
|
||||
run: |
|
||||
export VERSION=${{ steps.determine-version.outputs.next_version }}
|
||||
docker push meysamh66/booking-microservices-flight:$VERSION
|
||||
docker push meysamh66/booking-microservices-identity:$VERSION
|
||||
docker push meysamh66/booking-microservices-passenger:$VERSION
|
||||
docker push meysamh66/booking-microservices-booking:$VERSION
|
||||
docker push meysamh66/booking-microservices-flight:latest
|
||||
docker push meysamh66/booking-microservices-identity:latest
|
||||
docker push meysamh66/booking-microservices-passenger:latest
|
||||
docker push meysamh66/booking-microservices-booking:latest
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user