Commit 855d3b75 authored by Sean McGivern's avatar Sean McGivern

Merge branch...

Merge branch '37033-auto-devops-suppress-progress-on-pulling-docker-base-image-to-be-run' into 'master'

Suppress progress on pulling image on Code Quality of Auto DevOps

Closes #37033

See merge request gitlab-org/gitlab!20604
parents aada7297 9f2f9f44
---
title: Suppress progress on pulling image on Code Quality of Auto DevOps
merge_request: 20604
author: Takuya Noguchi
type: other
...@@ -7,6 +7,7 @@ code_quality: ...@@ -7,6 +7,7 @@ code_quality:
variables: variables:
DOCKER_DRIVER: overlay2 DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/security-products/codequality:12-5-stable"
script: script:
- | - |
if ! docker info &>/dev/null; then if ! docker info &>/dev/null; then
...@@ -14,11 +15,12 @@ code_quality: ...@@ -14,11 +15,12 @@ code_quality:
export DOCKER_HOST='tcp://localhost:2375' export DOCKER_HOST='tcp://localhost:2375'
fi fi
fi fi
- docker pull --quiet "$CODE_QUALITY_IMAGE"
- docker run - docker run
--env SOURCE_CODE="$PWD" --env SOURCE_CODE="$PWD"
--volume "$PWD":/code --volume "$PWD":/code
--volume /var/run/docker.sock:/var/run/docker.sock --volume /var/run/docker.sock:/var/run/docker.sock
"registry.gitlab.com/gitlab-org/security-products/codequality:12-5-stable" /code "$CODE_QUALITY_IMAGE" /code
artifacts: artifacts:
reports: reports:
codequality: gl-code-quality-report.json 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