summaryrefslogtreecommitdiff
path: root/doc/ci/examples
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2018-04-18 18:13:38 +0000
committerMarcia Ramos <virtua.creative@gmail.com>2018-04-18 18:13:38 +0000
commit05aa49765f6886e7530fcd30b4925f80013cef41 (patch)
tree6bd91c457e72c903c383b34261bffb1cfa671418 /doc/ci/examples
parenta3bbd0391864d434b7485cea0267624a697aac27 (diff)
parent71a385527daa27bfb7d51a89607e7a74fed257df (diff)
downloadgitlab-ce-05aa49765f6886e7530fcd30b4925f80013cef41.tar.gz
Merge branch 'docs-fix-sp-examples' into 'master'
Fix code climate example See merge request gitlab-org/gitlab-ce!18267
Diffstat (limited to 'doc/ci/examples')
-rw-r--r--doc/ci/examples/code_climate.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/ci/examples/code_climate.md b/doc/ci/examples/code_climate.md
index 92317c77427..d1aa783cc9c 100644
--- a/doc/ci/examples/code_climate.md
+++ b/doc/ci/examples/code_climate.md
@@ -17,7 +17,11 @@ codequality:
- docker:stable-dind
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
+ - 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]
```