Skip to content

Commit ee71e40

Browse files
committed
1
1 parent 0df9811 commit ee71e40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ghcr.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
type=sha,format=short
6969
# Tag latest only on main branch
7070
type=raw,value=latest,enable={{is_default_branch}}
71+
type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
7172
type=raw,value={{steps.short-sha.outputs.sha}},enable={{is_default_branch}}
7273
labels: |
7374
org.opencontainers.image.title=aigitcommit
@@ -83,6 +84,7 @@ jobs:
8384
push: ${{ github.event_name != 'pull_request' }}
8485
tags: |
8586
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
87+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
8688
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.short-sha.outputs.sha }}
8789
labels: ${{ steps.meta.outputs.labels }}
8890
cache-from: type=gha

0 commit comments

Comments
 (0)