Created
February 18, 2020 08:54
-
-
Save jacanales/5bb0a92fa3a18c5bddcca9007e334a69 to your computer and use it in GitHub Desktop.
ECR Login supporting aws-cli < 2.0 and >= 2.0
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
#!/usr/bin/env bash | |
aws ecr get-login --no-include-email > /dev/null 2>&1 || (aws ecr get-login-password | docker login --username AWS --password-stdin 846431675915.dkr.ecr.eu-west-1.amazonaws.com > /dev/null 2>&1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment