Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Open ResEl
Outils
CI - DinD Deploy
Commits
0a961497
Commit
0a961497
authored
Mar 26, 2020
by
Nicolas Vuillermet
Browse files
Mettre à jour .gitlab-ci.yml
parent
87306584
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
0a961497
...
...
@@ -2,7 +2,7 @@
image
:
docker:stable
variables
:
IMAGE
:
$
DOCKER
_REGISTRY
/public/ci-dind
IMAGE
:
$
CI
_REGISTRY
_IMAGE
DOCKER_HOST
:
tcp://docker:2375/
DOCKER_DRIVER
:
overlay2
DOCKER_TLS_VERIFY
:
'
'
...
...
@@ -17,7 +17,7 @@ services:
Build docker image
:
stage
:
build
before_script
:
&before_script
-
docker login
$DOCKER_REGISTRY -u $DOCKER
_REGISTRY_USER -p
$DOCKER
_REGISTRY_PASSWORD
-
docker login
-u "$CI
_REGISTRY_USER
"
-p
"$CI
_REGISTRY_PASSWORD
" "$CI_REGISTRY"
script
:
-
docker build -t $IMAGE:$CI_COMMIT_SHA .
-
docker push $IMAGE:$CI_COMMIT_SHA
...
...
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