mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-05-03 19:41:52 +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
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Prepare Release
|
- name: Get Latest Tag
|
||||||
id: prepare-release
|
run: |
|
||||||
uses: semantic-release/git
|
export VERSION=$(git describe --abbrev=0 --tags)
|
||||||
with:
|
echo "Latest Tag: $VERSION"
|
||||||
args: --dry-run
|
|
||||||
|
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@ -30,17 +28,15 @@ jobs:
|
|||||||
|
|
||||||
- name: Build image
|
- name: Build image
|
||||||
run: |
|
run: |
|
||||||
export VERSION=${{ steps.determine-version.outputs.next_version }}
|
docker build -t meysamh66/booking-microservices-flight:latest -f "${{ github.workspace }}/src/Services/Flight/Dockerfile" .
|
||||||
docker build -t meysamh66/booking-microservices-flight:$VERSION -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-identity:$VERSION -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-passenger:$VERSION -f "${{ github.workspace }}/src/Services/Passenger/Dockerfile" .
|
docker build -t meysamh66/booking-microservices-booking:latest -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
||||||
docker build -t meysamh66/booking-microservices-booking:$VERSION -f "${{ github.workspace }}/src/Services/Booking/Dockerfile" .
|
|
||||||
|
|
||||||
- name: Publish image
|
- name: Publish image
|
||||||
run: |
|
run: |
|
||||||
export VERSION=${{ steps.determine-version.outputs.next_version }}
|
docker push meysamh66/booking-microservices-flight:latest
|
||||||
docker push meysamh66/booking-microservices-flight:$VERSION
|
docker push meysamh66/booking-microservices-identity:latest
|
||||||
docker push meysamh66/booking-microservices-identity:$VERSION
|
docker push meysamh66/booking-microservices-passenger:latest
|
||||||
docker push meysamh66/booking-microservices-passenger:$VERSION
|
docker push meysamh66/booking-microservices-booking:latest
|
||||||
docker push meysamh66/booking-microservices-booking:$VERSION
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user