Skip to content

Commit

Permalink
fix push step
Browse files Browse the repository at this point in the history
  • Loading branch information
Jguer committed Feb 25, 2025
1 parent 427329f commit 5c9f0f4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/builder-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,15 @@ jobs:
echo -n "${{ env.REGISTRY_IMAGE }}@$(cat $file) "
done)
# Create the manifest list with the collected tags and digests
# Create the manifest list with the collected tags and digests for Docker Hub
docker buildx imagetools create $TAGS $DIGESTS
# Push to GitHub Container Registry
GHCR_TAGS=$(echo '${{ steps.meta.outputs.tags }}' | sed 's|^|ghcr.io/${{ env.REGISTRY_IMAGE }}:|g' | xargs -I {} echo "-t {}")
docker buildx imagetools create $GHCR_TAGS $DIGESTS
# For GitHub Container Registry, process each tag individually
for tag in $(echo '${{ steps.meta.outputs.tags }}' | grep -o '[^[:space:]]*$'); do
ghcr_tag="ghcr.io/${{ env.REGISTRY_IMAGE }}:$tag"
echo "Creating manifest for $ghcr_tag"
docker buildx imagetools create -t $ghcr_tag $DIGESTS
done
- name: Inspect image
run: |
Expand Down

0 comments on commit 5c9f0f4

Please sign in to comment.