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
813f6eb9
Commit
813f6eb9
authored
Mar 22, 2022
by
Christopher Mutua
Committed by
Nick Gaskill
Mar 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dependency proxy authentication example
parent
7867bc07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
doc/ci/docker/using_kaniko.md
doc/ci/docker/using_kaniko.md
+7
-0
No files found.
doc/ci/docker/using_kaniko.md
View file @
813f6eb9
...
...
@@ -74,6 +74,13 @@ build:
-
if
:
$CI_COMMIT_TAG
```
If you authenticate against the
[
Dependency Proxy
](
../../user/packages/dependency_proxy/index.md#authenticate-within-cicd
)
,
you must add the corresponding CI/CD variables for authentication to the
`config.json`
file:
```
yaml
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"},\"$CI_DEPENDENCY_PROXY_SERVER\":{\"auth\":\"$(printf "%s:%s" ${CI_DEPENDENCY_PROXY_USER} "${CI_DEPENDENCY_PROXY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
```
### Building an image with kaniko behind a proxy
If you use a custom GitLab Runner behind an http(s) proxy, kaniko needs to be set
...
...
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