Last active
February 14, 2018 15:01
-
-
Save deptno/dbd9d97e1a5e2d6794ca31aa7a30a38d to your computer and use it in GitHub Desktop.
circleci awscli ecr
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
version: 2 | |
jobs: | |
build: | |
branches: | |
only: | |
- master | |
docker: | |
- image: circleci/node:8-stretch | |
working_directory: ~/repo | |
steps: | |
- checkout | |
- setup_remote_docker | |
- run: sudo apt install python-pip python-dev && sudo pip install awscli | |
- run: $(aws ecr get-login --no-include-email --region ap-northeast-2) | |
- run: mkdir -p ~/.aws | |
- run: echo -e "[default]\naws_access_key_id=$AWS_ACCESS_KEY_ID\naws_secret_access_key=$AWS_SECRET_ACCESS_KEY\n" > ~/.aws/credentials | |
- run: echo -e "[default]\noutput = json\nregion = ap-northeast-2\n" > ~/.aws/config | |
# -run: build, tag, push |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment