Skip to content

Commit

Permalink
sets priorities for image tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ArquintL committed Feb 9, 2024
1 parent 5d8361a commit e46c19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
type=ref,event=pr
# use (short) commit hash as tag:
type=sha
# set latest tag for default branch:
type=raw,value=latest,enable={{is_default_branch}}
# use latest tag for default branch and with highest priority (1000 is the highest default priority for the other types):
type=raw,value=latest,priority=1100,enable={{is_default_branch}}
- name: Get first tag
run: echo "IMAGE_TAG=$(echo "${{ steps.image-metadata.outputs.tags }}" | head -1)" >> $GITHUB_ENV
Expand Down

0 comments on commit e46c19e

Please sign in to comment.