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