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