In this tutorial we’ll show you how to publish your operator in Charmhub.
You should already have completed a previous tutorial, to create a minimal operator, or already have one of your own that builds with charmcraft build
. You will need charmcraft
installed.
If you don’t have a charm and don’t want to go through that tutorial to make one, then you will not be able to work with Charmhub, but you can watch this tutorial on Youtube to get the idea.
We build the charm with charmcraft
. This will fetch any dependencies, compile any modules, check that all the key files are in place, and produce a compressed archive with the operator code and metadata as the charm.
$ charmcraft build
Done, charm left in 'hello-world.charm'