Skip to content

Commit 897903c

Browse files
authored
Merge pull request #42 from UCEAP/copilot/fix-release-build-issues
Fix Docker workflow tag generation for semver releases
2 parents 6837625 + cf644a2 commit 897903c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ jobs:
6565
with:
6666
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
6767
tags: |
68-
${{ github.event_name == 'pull_request' && 'type=ref,event=pr' || 'type=ref,event=branch' }}
68+
type=ref,event=branch
69+
type=ref,event=pr
70+
type=semver,pattern={{version}}
71+
type=semver,pattern={{major}}.{{minor}}
72+
type=semver,pattern={{major}}
6973
7074
# Build and push Docker image with Buildx
7175
# https://github.com/docker/build-push-action

0 commit comments

Comments
 (0)