build: Debug registry authentication config file
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
396e2fe9b3
commit
f09dfc99d2
@ -66,14 +66,13 @@ steps:
|
|||||||
wget https://github.com/jqlang/jq/releases/download/jq-1.6/jq-linux64 -qO /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
|
||||||
- |
|
- |
|
||||||
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
|
/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 \
|
/kaniko/executor \
|
||||||
--dockerfile=Dockerfile \
|
--dockerfile=Dockerfile \
|
||||||
--context=dir://. \
|
--context=dir://. \
|
||||||
--destination=index.docker.io/djpbessems/json-server:latest
|
--destination=docker.io/djpbessems/json-server:latest
|
||||||
environment:
|
environment:
|
||||||
DOCKER_USERNAME:
|
DOCKER_USERNAME:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
|
Loading…
Reference in New Issue
Block a user