Skip to content

Publish a verified Policy Pack registry layout.

Usage

rootform publish policy-packs <layout> [options]
SHELL

Options

FlagTypeDefaultDescription
--dry-runboolfalsereport the verified publication plan without network access
--formatstring""output format: text|json; default: text
--tostring""publish to the tagless OCI repository

Global options

FlagTypeDefaultDescription
-h, --helpboolfalseshow how to use rootform publish policy-packs
--colormodeautocolor human output: auto|always|never; default: auto
--no-pagerboolfalseprint a long report in full instead of opening it in less

Behavior

Validate an existing local Policy Pack registry layout, publish every Policy Pack to one registry repository, and repull each manifest by digest. Policy Packs are published exactly as selected. Dry-run remains offline.

The text or JSON result goes to standard output. Diagnostics go to standard error.

Exit status

StatusDescription
0publication or dry-run verification completed
1the registry layout is invalid
2the command was used incorrectly
4the layout could not be read, or registry publication or verification failed

Examples

rootform publish policy-packs ./oci --to registry.example.com/acme/policies
rootform publish policy-packs ./oci --to localhost:5000/acme/policies
rootform publish policy-packs ./oci --to registry.example.com/acme/policies \
--dry-run --format json
Shell