Skip to content

Commit dabc8a5

Browse files
committed
2 parents 9afcb33 + bfbebbc commit dabc8a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/gradle.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,13 @@ jobs:
6262
uses: docker/metadata-action@v4
6363
with:
6464
images: ghcr.io/${{ github.repository }}
65+
# Always tagged as the pushed branch (ex. master)
66+
# For releases: latest, full version and major version (ex. latest, v3.3 and v3)
6567
tags: |
66-
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/') }}
6768
type=raw,value={{branch}}
69+
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
6870
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/') }}
71+
type=match,pattern=v\d+,group=0,enable=${{ startsWith(github.ref, 'refs/tags/') }}
6972
flavor: |
7073
latest=false
7174
- name: Build and push

0 commit comments

Comments
 (0)