build: Remove registry from destination
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2023-07-11 17:40:32 +02:00
parent 78cb46795f
commit 3501cd51f3

View File

@ -63,7 +63,7 @@ steps:
pull: always pull: always
commands: commands:
- | - |
wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -O /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 $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json
@ -71,7 +71,7 @@ steps:
/kaniko/executor \ /kaniko/executor \
--dockerfile=Dockerfile \ --dockerfile=Dockerfile \
--context=dir://. \ --context=dir://. \
--destination=index.docker.io/djpbessems/json-server:latest --destination=djpbessems/json-server:latest
environment: environment:
DOCKER_USERNAME: DOCKER_USERNAME:
from_secret: docker_username from_secret: docker_username