Skip to content

Commit 2c3f08a

Browse files
loks0nclaude
andcommitted
Fix manifest job tag reference for tag-push events
`manifest_build_and_push_on_tag` runs on both `push` (tag) and `release: published`, but referenced `github.event.release.tag_name` which is only populated for release events. Pushing a tag without creating a GitHub Release produced an empty value and `docker manifest create` failed with "invalid reference format" (seen on the `1.2.2` tag run). Use `github.ref_name`, which is set for both event types. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 93dcef4 commit 2c3f08a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ jobs:
7878
- name: Create manifest
7979
run: |
8080
docker manifest create \
81-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }} \
81+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }} \
8282
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-amd64 \
8383
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-arm64
8484
8585
- name: Push manifest
8686
run: |
87-
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.release.tag_name }}
87+
docker manifest push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)