rad bicep publish CLI reference
rad bicep publish
Publish a Bicep file to an OCI registry.
Synopsis
Publish a Bicep file to an OCI registry. This command compiles and publishes a local Bicep file to a remote Open Container Initiative (OCI) registry, such as Azure Container Registry, Docker Hub, or GitHub Container Registry, to later be used as a Bicep registry or for Radius Recipes. Before publishing, it is expected the user runs docker login (or similar command) and has the proper permission to push to the target OCI registry. For more information on Bicep modules visit https://learn.microsoft.com/azure/azure-resource-manager/bicep/modules
rad bicep publish [flags]
Examples
# Publish a Bicep file to a container registry
rad bicep publish --file ./redis-test.bicep --target br:ghcr.io/myregistry/redis-test:v1
Options
--file string path to the local Bicep file, relative to the current working directory.
-h, --help help for publish
--plain-http connect to the Bicep registry using HTTP (not-HTTPS). This should be used when the registry is known not to support HTTPS, for example in a locally-hosted registry. Defaults to false (use HTTPS/TLS).
--target string remote OCI registry path, in the format 'br:HOST/PATH:TAG'.
Options inherited from parent commands
--config string config file (default "$HOME/.rad/config.yaml")
-o, --output string output format (supported formats are json, table) (default "table")
SEE ALSO
- rad bicep - Manage bicep compiler
Feedback
Was this page helpful?
Glad to hear it! Please feel free to star our repo and join our Discord server to stay up to date with the project.
Sorry to hear that. If you would like to also contribute a suggestion visit and tell us how we can improve.