Skip to content

Instantly share code, notes, and snippets.

@deptno
Last active February 14, 2018 15:01
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 deptno/dbd9d97e1a5e2d6794ca31aa7a30a38d to your computer and use it in GitHub Desktop.
Save deptno/dbd9d97e1a5e2d6794ca31aa7a30a38d to your computer and use it in GitHub Desktop.
circleci awscli ecr
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