From 396e2fe9b3478a2402060c1f574afd18a952145a Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 11 Jul 2023 19:22:19 +0200 Subject: [PATCH] build: Debug registry authentication --- .drone.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 8dc6111..18f5898 100644 --- a/.drone.yml +++ b/.drone.yml @@ -66,12 +66,14 @@ steps: wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /bin/jq chmod +x /bin/jq - | + ls /kaniko/.docker -lash /bin/jq '.auths["https://index.docker.io/v1/"].auth="'"$(echo $DOCKER_USERNAME':'$DOCKER_PASSWORD | base64)"'"' --null-input > /kaniko/.docker/config.json + ls /kaniko/.docker -lash - | /kaniko/executor \ --dockerfile=Dockerfile \ --context=dir://. \ - --destination=djpbessems/json-server:latest + --destination=index.docker.io/djpbessems/json-server:latest environment: DOCKER_USERNAME: from_secret: docker_username