From f648da0401f2318c19c5cc5383d7c19fd15c8593 Mon Sep 17 00:00:00 2001 From: CPCAlex <123777326+CPCAlex@users.noreply.github.com> Date: Sun, 3 Mar 2024 17:08:30 -0600 Subject: [PATCH] Update --- .gitlab-ci.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2a566b85..6a1cd9e3c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,10 @@ -image: gitlab-registry.nrp-nautilus.io/peicongcheng/traffic-sign-recognition-system +image: gcr.io/kaniko-project/executor:debug stages: -- build-and-push + - build-and-push build-and-push-job: stage: build-and-push - variables: - GODEBUG: "http2client=0" script: - - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - - /kaniko/executor --cache=true --push-retry=10 --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_SHORT_SHA --destination $CI_REGISTRY_IMAGE:latest \ No newline at end of file + - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json + - /kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:${CI_COMMIT_SHA:0:8} --destination $CI_REGISTRY_IMAGE:latest -- GitLab