Commit db065fbf authored by Takuya Noguchi's avatar Takuya Noguchi

Adapt code_quality Auto DevOps template to GitLab self

Corresponding MRs are as follow:

- https://gitlab.com/gitlab-org/gitlab/merge_requests/20046
- https://gitlab.com/gitlab-org/gitlab/merge_requests/20604Signed-off-by: default avatarTakuya Noguchi <takninnovationresearch@gmail.com>
parent 838b7a00
......@@ -20,6 +20,7 @@ code_quality:
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/security-products/codequality:12-5-stable"
script:
- |
if ! docker info &>/dev/null; then
......@@ -27,11 +28,12 @@ code_quality:
export DOCKER_HOST='tcp://localhost:2375'
fi
fi
- docker pull --quiet "$CODE_QUALITY_IMAGE"
- 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:12-0-stable" /code
"$CODE_QUALITY_IMAGE" /code
artifacts:
reports:
codequality: gl-code-quality-report.json
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment