Commit 53b09486 authored by Nicholas J Anderson's avatar Nicholas J Anderson

Merge branch 'master' into 'master'

Update CI config for passing Kaniko credentials

Kaniko image was updated to no longer read Docker Registry credentials from `/root/.docker/config.json`, instead it now reads from `/kaniko/.docker/config.json`.

See merge request !42
parents 23755582 a582f967
Pipeline #3987 passed with stages
in 16 minutes and 23 seconds
......@@ -20,8 +20,7 @@ build:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
script:
- mkdir -p /root/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- /kaniko/executor --context $CI_PROJECT_DIR/schedules --dockerfile $CI_PROJECT_DIR/schedules/Dockerfile --destination $CI_REGISTRY_IMAGE/api:$CI_COMMIT_TAG
only:
- tags
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