diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2a566b85ee68a76fb39a10b4ee40e629243f8a8..6a1cd9e3c45545198aa9d273c268d1aabbf9e188 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