Skip to content
Snippets Groups Projects
Commit 74c8e492 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

OZG-4097 pipeline: Add docker authentication

parent 605658fe
Branches
Tags
No related merge requests found
......@@ -12,6 +12,28 @@ variables:
services:
- docker:dind
before_script:
- mkdir -p $HOME/.docker
- |
cat << EOF > $HOME/.docker/config.json
{
"auths": {
"docker.ozg-sh.de": {
"username": "$NEXUS_USER",
"password": "$NEXUS_PASSWORD"
}
},
"proxies": {
"default": {
"httpProxy": "$HTTP_PROXY",
"httpsProxy": "$HTTPS_PROXY",
"noProxy": "$NO_PROXY"
}
}
}
EOF
- cat ~/.docker/config.json
cache:
paths:
- .m2/repository/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment