Skip to content

Commit d5bea93

Browse files
committed
Use remote.Push instead of remote.Put
For adding labels, which are part of the config blob of a image we need to use `remote.Push` instead of `remote.Put` due to a change in go-containerregistry[1]. Now `remote.Put` will not upload any changed blobs, it will just update the manifest, so the mutated config blob will not be present in the registry and the update of the manifest would fail. [1] google/go-containerregistry#1970
1 parent 6eec165 commit d5bea93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acceptance/image/image.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ func labelImage(ctx context.Context, imageName string, labels *godog.Table) (con
448448
return ctx, err
449449
}
450450

451-
return ctx, remote.Put(ref, img)
451+
return ctx, remote.Push(ref, img)
452452
}
453453

454454
type patchFn func(v1.Image) (v1.Image, error)

0 commit comments

Comments
 (0)