build: Avoid newline in encoded authentication token
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Danny Bessems 2023-07-11 19:25:44 +02:00
parent f09dfc99d2
commit dce6d7fb1c

View File

@ -66,7 +66,7 @@ steps:
wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq
chmod +x /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 cat /kaniko/.docker/config.json
- | - |
/kaniko/executor \ /kaniko/executor \