diff --git a/.maintain/docker-auth-config.sh b/.maintain/docker-auth-config.sh index 3e2227e1fc..09d43634c5 100755 --- a/.maintain/docker-auth-config.sh +++ b/.maintain/docker-auth-config.sh @@ -1,5 +1,6 @@ #!/bin/bash +set +x export PAYLOAD=`jq -n --arg userpass "$(echo -n "AWS:$(aws ecr get-login-password --region $AWS_DEFAULT_REGION)" | base64)" '{"auths": {"'$AWS_REGISTRY'": {"auth": $userpass}}}'` -curl --request PUT --header "PRIVATE-TOKEN:$TOKEN" "https://gitlab.com/api/v4/projects/26909212/variables/DOCKER_AUTH_CONFIG" --form "value=$PAYLOAD" +curl --silent --request PUT --header "PRIVATE-TOKEN:$TOKEN" "https://gitlab.com/api/v4/projects/26909212/variables/DOCKER_AUTH_CONFIG" --form "value=$PAYLOAD" > /dev/null