build: Fix mixed up destination / credentials
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2023-07-11 17:37:37 +02:00
parent 48e8b21c30
commit 78cb46795f
1 changed files with 2 additions and 2 deletions

View File

@ -66,12 +66,12 @@ steps:
wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -O /bin/jq
chmod +x /bin/jq
- |
/bin/jq '.auths["https://bv11-cr01.bessems.eu/v2"].auth="'"$(echo $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json
/bin/jq '.auths["https://index.docker.io/v1/"].auth="'"$(echo $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json
- |
/kaniko/executor \
--dockerfile=Dockerfile \
--context=dir://. \
--destination=bv11-cr01.bessems.eu/library/json-server:latest
--destination=index.docker.io/djpbessems/json-server:latest
environment:
DOCKER_USERNAME:
from_secret: docker_username