Skip to content

Commit

Permalink
tag on release event
Browse files Browse the repository at this point in the history
  • Loading branch information
markostreich committed Oct 10, 2024
1 parent 3f2c228 commit ad35e2e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
path: ./target

publish:
if: github.ref == 'refs/heads/dev'
if: github.ref == 'refs/heads/dev' || github.event_name == 'release'
runs-on: ubuntu-latest
needs: build
permissions:
Expand Down Expand Up @@ -87,6 +87,11 @@ jobs:
uses: docker/metadata-action@v5.5.1
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# Default tag for pushes to 'dev' branch
${{ github.event_name == 'push' && 'dev' }}
# Use release tag if available
${{ github.event_name == 'release' && 'prod' }}
# Build and push Docker image with Buildx
# https://github.com/docker/build-push-action
Expand Down

0 comments on commit ad35e2e

Please # to comment.