Skip to content

Commit

Permalink
refactor: SHA image tag only for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
KevFan committed Jan 10, 2024
1 parent a390351 commit c1b029c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ jobs:
images: |
${{ env.IMG_REGISTRY_HOST }}/${{ env.IMG_REGISTRY_ORG }}/limitador
tags: |
# type=raw,value=${{ github.sha }}
# SHA tag for main branch
type=raw,value=${{ github.sha }},enable=${{ github.ref_name == env.MAIN_BRANCH_NAME }}
# set latest tag for main branch
type=raw,value=latest,enable=${{ github.ref_name == env.MAIN_BRANCH_NAME }}
# set ref name tag for non-main branches
Expand Down

0 comments on commit c1b029c

Please sign in to comment.