Skip to content

Commit 1602822

Browse files
committed
fix(ci): remove --all flag from skopeo copy to fix registry push
skopeo copy --all is designed for multi-arch manifest lists. When the source OCI archive is a single-arch image (as built here without --platform), newer versions of skopeo can fail with --all since the source is not a proper manifest list. Removing --all lets skopeo copy the single image directly to the registry. https://claude.ai/code/session_01EPCuwhfNsPPDS5KCduYZfb
1 parent 6b51354 commit 1602822

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,16 +109,16 @@ jobs:
109109
fi
110110
111111
# Push semantic version tag (1.2.3)
112-
skopeo copy --all "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:${IMAGE_VERSION}"
112+
skopeo copy "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:${IMAGE_VERSION}"
113113
114114
# Push major.minor tag (1.2)
115-
skopeo copy --all "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:${MAJOR}.${MINOR}"
115+
skopeo copy "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:${MAJOR}.${MINOR}"
116116
117117
# Push major tag (1)
118-
skopeo copy --all "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:${MAJOR}"
118+
skopeo copy "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:${MAJOR}"
119119
120120
# Push latest tag
121-
skopeo copy --all "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:latest"
121+
skopeo copy "oci-archive:build/${IMAGE_NAME}.tar" "docker://${REGISTRY}:latest"
122122
123123
- name: Verify pushed image
124124
env:

0 commit comments

Comments
 (0)