Fix aws login
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
IS_V2=`aws --version | grep -P "^aws-cli/2" | wc -l`
|
||||
|
||||
if [[ $IS_V2 -eq "1" ]]; then
|
||||
aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin 299952237278.dkr.ecr.eu-west-1.amazonaws.com
|
||||
aws ecr get-login-password --region eu-west-1 --profile personal | docker login --username AWS --password-stdin 299952237278.dkr.ecr.eu-west-1.amazonaws.com
|
||||
else
|
||||
$(aws ecr get-login --no-include-email)
|
||||
$(aws ecr get-login --no-include-email --profile personal)
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user