Skip to content

Instantly share code, notes, and snippets.

@bellyjay1005
Created October 31, 2019 04:48
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 bellyjay1005/b7be48639882c063d51bd56092bab382 to your computer and use it in GitHub Desktop.
Save bellyjay1005/b7be48639882c063d51bd56092bab382 to your computer and use it in GitHub Desktop.
sample buildspec pre-build step
pre_build:
commands:
- echo Image repository setup started on `date`
- echo ECR Setup...
- echo Logging into AWS ECR...
- $(aws ecr get-login --no-include-email --region ${AWS_DEFAULT_REGION})
- echo Configure Anchore Client...
- export ANCHORE_CLI_PASS=foobar
- export ANCHORE_CLI_USER=admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment