From f09dfc99d22163d851f67e54390855c52187a4e3 Mon Sep 17 00:00:00 2001 From: Danny Bessems Date: Tue, 11 Jul 2023 19:24:30 +0200 Subject: [PATCH] build: Debug registry authentication config file --- .drone.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 18f5898..0790163 100644 --- a/.drone.yml +++ b/.drone.yml @@ -66,14 +66,13 @@ 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 + cat /kaniko/.docker/config.json - | /kaniko/executor \ --dockerfile=Dockerfile \ --context=dir://. \ - --destination=index.docker.io/djpbessems/json-server:latest + --destination=docker.io/djpbessems/json-server:latest environment: DOCKER_USERNAME: from_secret: docker_username