.cody/acceptance/bin/build.sh in ufo-6.1.5 vs .cody/acceptance/bin/build.sh in ufo-6.2.0
- old
+ new
@@ -20,10 +20,10 @@
aws ecr create-repository --repository-name test/demo || true
REPO=$(aws ecr describe-repositories --repository-name test/demo | jq -r '.repositories[].repositoryUri')
# DockerHub
# toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating
-docker login --username $DOCKER_USER --password $DOCKER_PASS
+echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
TOKEN=$(curl -s --user "$DOCKER_USER:$DOCKER_PASS" "https://auth.docker.io/token?service=registry.docker.io&scope=repository:ratelimitpreview/test:pull" | jq -r .token)
echo "Current rate limit:"
curl -s --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest
set -x