From 1cbcdf8036ff63b0994f60a1c5487aa534992882 Mon Sep 17 00:00:00 2001 From: gera Date: Mon, 19 Dec 2022 16:34:07 +0100 Subject: [PATCH] fix: disable curl output --- .maintain/docker-auth-config.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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