Skip to content
This repository was archived by the owner on Nov 14, 2025. It is now read-only.

Commit ac06fbe

Browse files
sapientpantsclaude
andauthored
fix: use --multi-arch all flag for multi-platform Docker push (#315)
Changed skopeo copy commands from --all to --multi-arch all to properly handle OCI archives containing manifest lists with both linux/amd64 and linux/arm64 images. The --all flag is for copying all tags, while --multi-arch all is specifically for copying all architectures from a manifest list. This fixes the error: "more than one image in oci, choose an image" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent 6a1c62d commit ac06fbe

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'sonarqube-mcp-server': patch
3+
---
4+
5+
Fix multi-platform Docker image publishing to Docker Hub
6+
7+
- Change skopeo `--all` flag to `--multi-arch all` for proper OCI manifest list handling
8+
- Ensures both linux/amd64 and linux/arm64 images are pushed correctly
9+
- Fixes error: "more than one image in oci, choose an image"

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ jobs:
386386
# Use skopeo to push from OCI archive directly to Docker Hub
387387
# This preserves multi-platform manifest lists
388388
skopeo copy \
389-
--all \
389+
--multi-arch all \
390390
oci-archive:./docker-artifact/${{ steps.artifact.outputs.artifact_name }}.tar \
391391
docker://$TARGET_REPO:$VERSION
392392
@@ -395,9 +395,9 @@ jobs:
395395
MAJOR=$(echo "$VERSION" | cut -d. -f1)
396396
MINOR=$(echo "$VERSION" | cut -d. -f2)
397397
398-
skopeo copy docker://$TARGET_REPO:$VERSION docker://$TARGET_REPO:latest
399-
skopeo copy docker://$TARGET_REPO:$VERSION docker://$TARGET_REPO:$MAJOR
400-
skopeo copy docker://$TARGET_REPO:$VERSION docker://$TARGET_REPO:$MAJOR.$MINOR
398+
skopeo copy --multi-arch all docker://$TARGET_REPO:$VERSION docker://$TARGET_REPO:latest
399+
skopeo copy --multi-arch all docker://$TARGET_REPO:$VERSION docker://$TARGET_REPO:$MAJOR
400+
skopeo copy --multi-arch all docker://$TARGET_REPO:$VERSION docker://$TARGET_REPO:$MAJOR.$MINOR
401401
402402
echo "✅ Docker image published successfully"
403403

0 commit comments

Comments
 (0)