From 6fbd87f14e8cbebb7a86f266cd40a3cf12a63fa6 Mon Sep 17 00:00:00 2001 From: Patrick Bajao Date: Thu, 28 May 2020 18:47:56 +0800 Subject: Use codequality CI template In https://gitlab.com/gitlab-org/gitlab/-/issues/218797, it was determined that gitlab-shell is using an outdated image that no longer exists. To ensure that we are using up to date codequality image, we can use the built-in template instead. --- .gitlab-ci.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c9c1744..c6be748 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,3 +1,6 @@ +include: + - template: Code-Quality.gitlab-ci.yml + variables: DOCKER_VERSION: "19.03.0" @@ -61,16 +64,8 @@ race: script: - make test_golang_race -codequality: +code_quality: extends: .use-docker-in-docker - allow_failure: true - script: - - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - - docker run - --env SOURCE_CODE="$PWD" - --volume "$PWD":/code - --volume /var/run/docker.sock:/var/run/docker.sock - "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code artifacts: paths: [codeclimate.json] -- cgit v1.2.1