Commit fd69233c authored by Sandro Mathys's avatar Sandro Mathys
Browse files

fix json syntax and make better readable

parent 0abd0497
......@@ -8,7 +8,21 @@ default:
entrypoint: [""]
before_script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"${CI_REGISTRY}\":{\"username\":\"${CI_REGISTRY_USER}\",\"password\":\"${CI_REGISTRY_PASSWORD}\"}},{\"${CI_DEPENDENCY_PROXY_SERVER}\":{\"username\":\"${CI_DEPENDENCY_PROXY_USER}\",\"password\":\"${CI_DEPENDENCY_PROXY_PASSWORD}\"}}}" > /kaniko/.docker/config.json
- |-
cat <<EOF > /kaniko/.docker/config.json
{
"auths": {
"${CI_REGISTRY}": {
"username": "${CI_REGISTRY_USER}",
"password": "${CI_REGISTRY_PASSWORD}"
},
"${CI_DEPENDENCY_PROXY_SERVER}": {
"username": "${CI_DEPENDENCY_PROXY_USER}",
"password": "${CI_DEPENDENCY_PROXY_PASSWORD}"
}
}
}
EOF
stages:
- kaniko
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment