Skip to content

Commit e67757f

Browse files
committed
Also publish sha-* tags to GHCR
1 parent ad3eb2a commit e67757f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
uses: docker/metadata-action@v3
4141
with:
4242
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
43+
tags: |
44+
type=ref,event=branch
45+
type=ref,event=pr
46+
type=semver,pattern={{version}}
47+
type=semver,pattern={{major}}.{{minor}}
48+
type=sha
4349
4450
- name: Build and push Docker image
4551
uses: docker/build-push-action@v2

0 commit comments

Comments
 (0)