From c4d57d06696bdf1ea795144fd25165e3863439ba Mon Sep 17 00:00:00 2001 From: ChandonPierre Date: Mon, 11 Sep 2023 11:48:30 -0400 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f6eeee1..ed85dc2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,12 +22,13 @@ build: REF_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG FIXED_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA DOCKERFILE: ${CI_PROJECT_DIR}/Dockerfile - HTTP_PROXY: http://193.25.126.17:3128/ - HTTPS_PROXY: http://193.25.126.17:3128/ + REGPROXY_URI: http://193.25.126.17:3128/ before_script: + - export HTTP_PROXY=${REGPROXY_URI} + - export HTTPS_PROXY=${REGPROXY_URI} + - mkdir -p /etc/ssl/certs/ && cat /etc/gitlab-runner/certs/proxy-ca.crt >> /etc/ssl/certs/ca-certificates.crt - mkdir -p /kaniko/.docker - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - cat /etc/gitlab-runner/certs/proxy-ca.crt >> /etc/ssl/certs/ca-certificates.crt script: |- /kaniko/executor \ $KANIKO_ADDTL_ARGS \