Skip to content

Commit

Permalink
Update Docker workflow with semver tag fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Dec 13, 2024
1 parent 20d8d9e commit 7041d7d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# TODO: Adjust this as soon as we have semver
tags: |
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand Down

0 comments on commit 7041d7d

Please sign in to comment.