We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df9811 commit ee71e40Copy full SHA for ee71e40
.github/workflows/ghcr.yml
@@ -68,6 +68,7 @@ jobs:
68
type=sha,format=short
69
# Tag latest only on main branch
70
type=raw,value=latest,enable={{is_default_branch}}
71
+ type=raw,value={{tag}},enable=${{ startsWith(github.ref, 'refs/tags/v') }}
72
type=raw,value={{steps.short-sha.outputs.sha}},enable={{is_default_branch}}
73
labels: |
74
org.opencontainers.image.title=aigitcommit
@@ -83,6 +84,7 @@ jobs:
83
84
push: ${{ github.event_name != 'pull_request' }}
85
tags: |
86
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
87
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
88
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.short-sha.outputs.sha }}
89
labels: ${{ steps.meta.outputs.labels }}
90
cache-from: type=gha
0 commit comments