Skip to content

Commit b64bf72

Browse files
committed
fix: correct cosign signing tag to match docker metadata output
1 parent bbf0307 commit b64bf72

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ jobs:
7171
env:
7272
COSIGN_EXPERIMENTAL: 1
7373
run: |
74+
# Extract version without 'v' prefix (to match docker metadata output)
75+
VERSION="${{ github.ref_name }}"
76+
VERSION="${VERSION#v}"
7477
echo "Signing Docker image with cosign (keyless)..."
75-
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
78+
echo "Tag: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${VERSION}"
79+
cosign sign --yes ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${VERSION}
7680
echo "✅ Docker image signed"
7781
7882
- name: Generate Docker summary

0 commit comments

Comments
 (0)