From dfb0b0f03d3b157452395c59bc8ad84866ef7d1e Mon Sep 17 00:00:00 2001 From: Gregory Hill Date: Thu, 15 Jul 2021 09:43:15 +0100 Subject: [PATCH] chore: use dockerhub auth in gitlab-ci Signed-off-by: Gregory Hill --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 541a644049..b1d725c37a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ image: "registry.gitlab.com/interlay/containers/rust-base:nightly-2021-03-15" name: gcr.io/kaniko-project/executor:debug entrypoint: [""] script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + - echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"auth\":\"$DOCKER_HUB_TOKEN\"}}}" > /kaniko/.docker/config.json - | /kaniko/executor \ --build-arg BINARY=${ARTIFACT_BIN_PATH} \