Skip to content

Instantly share code, notes, and snippets.

@zynaxsoft
Created November 13, 2019 03:53
Show Gist options
  • Save zynaxsoft/67b908591a5e33e7fd79451b42ee1970 to your computer and use it in GitHub Desktop.
Save zynaxsoft/67b908591a5e33e7fd79451b42ee1970 to your computer and use it in GitHub Desktop.
docker pull
#!/bin/bash
REPO_LIST=(
"repoA"
"repoB"
)
VERSION="v99"
REPO_BASE_URL="148414141115.dkr.ecr.ap-northeast-1.amazonaws.com/"
# login to ecr
$(aws ecr get-login --no-include-email)
for repo in ${REPO_LIST[@]}; do
docker pull ${REPO_BASE_URL}${repo}:${VERSION}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment