Skip to content

Commit

Permalink
Fix creating manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
zarvd committed Sep 7, 2024
1 parent 164962c commit 9637c8e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,14 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "${{ steps.meta.outputs.json }}") \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
if [[ -n "${{ steps.meta.outputs.tags }}" ]]; then
tags=$(echo "${{ steps.meta.outputs.tags }}" | tr '\n' ' ' | xargs -I {} echo "-t {}")
docker buildx imagetools create $tags \
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
else
echo "No tags found. Skipping manifest creation."
exit 1
fi
- name: Inspect image
run: |
Expand Down

0 comments on commit 9637c8e

Please sign in to comment.