Add amazon-ecr-credential-helper (#5544)

This commit is contained in:
Aleksandr Chebotov
2022-05-16 17:49:51 +02:00
committed by GitHub
parent 888d89126b
commit 17d10f6889
4 changed files with 16 additions and 0 deletions

View File

@@ -46,4 +46,10 @@ done
# stored from earlier.
docker logout
# Install amazon-ecr-credential-helper
aws_latest_release_url="https://api.github.com/repos/awslabs/amazon-ecr-credential-helper/releases/latest"
aws_helper_url=$(curl "${authString[@]}" -sL $aws_latest_release_url | jq -r '.body' | awk -F'[()]' '/linux-amd64/ {print $2}')
download_with_retries "$aws_helper_url" "/usr/bin" docker-credential-ecr-login
chmod +x /usr/bin/docker-credential-ecr-login
invoke_tests "Tools" "Docker"