Last active
January 17, 2023 00:12
-
-
Save ogazitt/46f43fc7810d15d68db5964cf84f40ed to your computer and use it in GitHub Desktop.
create a policy image using the policy cli
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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