Skip to content

Commit e46c19e

Browse files
committed
sets priorities for image tags
1 parent 5d8361a commit e46c19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ jobs:
6767
type=ref,event=pr
6868
# use (short) commit hash as tag:
6969
type=sha
70-
# set latest tag for default branch:
71-
type=raw,value=latest,enable={{is_default_branch}}
70+
# use latest tag for default branch and with highest priority (1000 is the highest default priority for the other types):
71+
type=raw,value=latest,priority=1100,enable={{is_default_branch}}
7272
7373
- name: Get first tag
7474
run: echo "IMAGE_TAG=$(echo "${{ steps.image-metadata.outputs.tags }}" | head -1)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)