diff --git a/.github/workflows/build-publish-docker.yml b/.github/workflows/build-publish-docker.yml index 3286af5..837fdef 100644 --- a/.github/workflows/build-publish-docker.yml +++ b/.github/workflows/build-publish-docker.yml @@ -17,7 +17,10 @@ jobs: - name: Prepare Release id: prepare-release - uses: semantic-release/github-action@v7 + uses: semantic-release/git@v7 + with: + args: --dry-run + - name: Login to DockerHub uses: docker/login-action@v2 @@ -27,7 +30,7 @@ jobs: - name: Build image run: | - export VERSION=${GITHUB_REF#refs/tags/} + 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" . @@ -35,7 +38,7 @@ jobs: - name: Publish image run: | - export VERSION=${GITHUB_REF#refs/tags/} + 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