Skip to content

Instantly share code, notes, and snippets.

@ogazitt
Last active January 17, 2023 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ogazitt/46f43fc7810d15d68db5964cf84f40ed to your computer and use it in GitHub Desktop.
Save ogazitt/46f43fc7810d15d68db5964cf84f40ed to your computer and use it in GitHub Desktop.
create a policy image using the policy cli
brew install opcr-io/tap/policy
echo $PAT | policy login -s ghcr.io -u <GitHub-account> --password-stdin
mkdir ./demo && cd ./demo
policy templates apply policy-template
tree .
policy build -t ghcr.io/<org>/policy-template:1.0.0 ./src
policy images
policy push ghcr.io/<org>/policy-template:1.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment