Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6a066d43
Commit
6a066d43
authored
Jul 23, 2021
by
drew cimino
Committed by
Evan Read
Jul 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CodeQuality sample configuration for private image registries
parent
c306cca2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
doc/user/project/merge_requests/code_quality.md
doc/user/project/merge_requests/code_quality.md
+34
-0
No files found.
doc/user/project/merge_requests/code_quality.md
View file @
6a066d43
...
@@ -296,6 +296,40 @@ code_quality:
...
@@ -296,6 +296,40 @@ code_quality:
-
if
:
'
$CI_COMMIT_TAG'
# Run code quality job in pipelines for tags
-
if
:
'
$CI_COMMIT_TAG'
# Run code quality job in pipelines for tags
```
```
### Configure Code Quality to use a private container image registry
> [Introduced](https://gitlab.com/gitlab-org/ci-cd/codequality/-/merge_requests/30) in 13.7.
To reduce network time and external dependency, you can use your own
container image registry to host the Code Quality Docker images. Because of
the nested architecture of container execution, the registry prefix must
be specifically configured to be passed down into CodeClimate's subsequent
`docker pull`
commands for individual engines.
The following two variables can address all of the required image pulls:
-
`CODE_QUALITY_IMAGE`
: A fully prefixed image name that can be located anywhere
accessible from your job environment. GitLab Container Registry can be used here
to host your own copy.
-
`CODECLIMATE_PREFIX`
: The domain of your intended container image registry. This
is a configuration option supported by
[
CodeClimate CLI
](
https://github.com/codeclimate/codeclimate/pull/948
)
. You must:
-
Include a trailing slash (
`/`
).
-
Not include a protocol prefix, such as
`https://`
.
```
yaml
include
:
-
template
:
Jobs/Code-Quality.gitlab-ci.yml
code_quality
:
variables
:
CODE_QUALITY_IMAGE
:
"
my-private-registry.local:12345/codequality:0.85.24"
CODECLIMATE_PREFIX
:
"
my-private-registry.local:12345/"
```
This example is specific to GitLab Code Quality. For more general
instructions on how to configure DinD with a registry mirror, see the
relevant
[
documentation
](
../../../ci/docker/using_docker_build.md#enable-registry-mirror-for-dockerdind-service
)
.
## Configuring jobs using variables
## Configuring jobs using variables
The Code Quality job supports environment variables that users can set to
The Code Quality job supports environment variables that users can set to
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment