rad bicep publish CLI reference

Details on the rad bicep publish Radius CLI command

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