Skip to content

Instantly share code, notes, and snippets.

@bellyjay1005
Created October 31, 2019 04:48
Show Gist options
  • 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