SHARE
TWEET

Untitled

a guest Jun 18th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cd FlaskApp
  2. # That's some hell of bash pipelining, but I'm too lazy to copy/paste ECR uri.
  3. REPO=$(aws ecr describe-repositories --profile YOUR_PROFILE \
  4.                                      --region YOUR_REGION \
  5.                                      --repository-names YOUR_REPO_NAME | \
  6.                                      jq .repositories[].repositoryUri | \
  7.                                      sed -e 's/^"//' -e 's/"$//')
  8.  
  9. docker build -t ${REPO}:v1 .
  10. $(aws ecr get-login --no-include-email --region YOUR_REGION --profile YOUR_PROFILE)
  11. docker push ${REPO}:v1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top