Skip to content

Commit 3800a00

Browse files
dilyevskyclaude
andcommitted
fix: publish single-arch images as plain manifests, not manifest lists
crane index append can only combine plain image manifests, not manifest lists. Remove PlatformVariants when publishing single-arch images. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 558f10f commit 3800a00

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ci/main.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -854,11 +854,10 @@ func (m *ApoxyCli) PublishSingleArchImages(
854854
}
855855

856856
for _, img := range images {
857-
addr, err := dag.Container().
857+
// Publish as a plain image (not a manifest list) so crane can combine them later.
858+
addr, err := img.ctr.
858859
WithRegistryAuth("registry-1.docker.io", "apoxy", registryPassword).
859-
Publish(ctx, fmt.Sprintf("docker.io/apoxy/%s:%s-%s", img.name, tag, goarch), dagger.ContainerPublishOpts{
860-
PlatformVariants: []*dagger.Container{img.ctr},
861-
})
860+
Publish(ctx, fmt.Sprintf("docker.io/apoxy/%s:%s-%s", img.name, tag, goarch))
862861
if err != nil {
863862
return fmt.Errorf("failed to publish %s: %w", img.name, err)
864863
}

0 commit comments

Comments
 (0)