From dce6d7fb1c2fc823d9e7b95a724206cb4875476f Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 11 Jul 2023 19:25:44 +0200 Subject: [PATCH] build: Avoid newline in encoded authentication token --- .drone.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 0790163..912deb7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -66,7 +66,7 @@ steps: wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq chmod +x /bin/jq - | - /bin/jq '.auths["https://index.docker.io/v1/"].auth="'"$(echo $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json + /bin/jq '.auths["https://index.docker.io/v1/"].auth="'"$(echo -n $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json cat /kaniko/.docker/config.json - | /kaniko/executor \