Skip to content

Commit

Permalink
Fixed tagging of release version
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy committed Dec 4, 2021
1 parent b793733 commit 7b0e2ae
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker.image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ jobs:
platforms: arm,arm64,amd64
- name: Docker Setup Buildx
uses: docker/[email protected]
- name: Build & Push Docker image
- name: Build & Push Docker image (Latest)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/remotes/')
run: docker buildx build . --file Dockerfile -t kcapp/frontend:latest --platform=linux/arm,linux/arm64,linux/amd64 --push
- name: Tag release version
- name: Build & Push Docker image (Release version)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: |
docker tag kcapp/frontend:latest kcapp/frontend:${{ env.RELEASE_VERSION }}
docker push kcapp/frontend:${{ env.RELEASE_VERSION }}
run: docker buildx build . --file Dockerfile -t kcapp/frontend:${{ env.RELEASE_VERSION }} --platform=linux/arm,linux/arm64,linux/amd64 --push

0 comments on commit 7b0e2ae

Please sign in to comment.