Skip to content

Commit 8ecbed7

Browse files
Update Docker image tagging strategy
1 parent affd97d commit 8ecbed7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ jobs:
4141
with:
4242
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4343
tags: |
44-
type=ref,event=branch
45-
type=ref,event=pr
44+
type=raw,value=latest,enable={{is_default_branch}}
45+
type=sha,prefix={{branch}}-
4646
type=semver,pattern={{version}}
47-
type=semver,pattern={{major}}.{{minor}}
48-
type=sha,prefix=
4947
5048
- name: Build and push Docker image
5149
uses: docker/build-push-action@v6

0 commit comments

Comments
 (0)