You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, @ywk253100,
Thanks a lot for reporting the issue!
#65 introduced a change in how we handle pushing images, so the current behaviour is that cnab-to-oci will fail if the registry generates a different content digest for any image referenced in the bundle.
(notice how the content digest obtained after pushing the image is different from the one initially included in the bundle).
The same change also introduced the --auto-update-bundle flag for push, which will automatically update the bundle with the new content digest.
The reason we chose not to do that by default is because this operation has to mutate your bundle file before pushing, and we believe this should be something a user should explicitly ask for.
That being said, we should absolutely have a working example in the readme, and should either:
update the readme to include the --auto-update-bundle flag for the push command
replace the example bundle with one that contains the content digest for the image - see below a minimal complete bundle example in canonical form:
{"description":"A short description of your bundle","invocationImages":[{"contentDigest":"sha256:a59a4e74d9cc89e4e75dfb2cc7ea5c108e4236ba6231b53081a9e2506d1197b6","image":"cnab/helloworld:0.1.1","imageType":"docker","mediaType":"application/vnd.docker.distribution.manifest.v2+json","size":942}],"keywords":["helloworld","cnab","tutorial"],"maintainers":[{"email":"jane.doe@example.com","name":"Jane Doe","url":"https://example.com"}],"name":"helloworld","schemaVersion":"v1.0.0-WD","version":"0.1.1"}
I hope this gives you a little context into what is happening.
Thanks a lot for reporting, keeping it open until we have a fix.
The text was updated successfully, but these errors were encountered: