canonical / charmcraft

Collaborate, build and publish charmed operators for Kubernetes, Linux and Windows.
Apache License 2.0
66 stars 69 forks source link

feat: backport rock upload to charmcraft 2.x #1708

Closed lengau closed 3 months ago

lengau commented 3 months ago

Allows Charmcraft 2.7+ to use skopeo urls directly when uploading an oci-image resource.

Example:

$ charmcraft upload-resource lengau-test-charm example-image --image docker://ghcr.io/canonical/charmed-mysql:8.0.36-22.04_edge
Image not found locally. Passing path directly to skopeo.                                         
Revision 6 created of resource 'example-image' for charm 'lengau-test-charm'.      
$