Commit efed1c74 authored by Narcon Nicolas's avatar Narcon Nicolas
Browse files

FIX: ci docker build, same as decloud

parent 07491f71
No related merge requests found
Showing with 16 additions and 0 deletions
+16 -0
...@@ -2,7 +2,23 @@ image: docker:latest ...@@ -2,7 +2,23 @@ image: docker:latest
services: services:
- docker:dind - docker:dind
.dind_base:
tags: [dind]
image: docker/compose:1.29.2
variables:
DOCKER_TLS_CERTDIR: ""
DOCKER_HOST: tcp://docker:2375
services:
- name: docker:dind
command: [dockerd, '-H', 'tcp://0.0.0.0:2375']
before_script:
# docker login asks for the password to be passed through stdin for security
# we use $CI_REGISTRY_PASSWORD here which is a special variable provided by GitLab
# https://docs.gitlab.com/ce/ci/variables/predefined_variables.html
- echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
build-image: build-image:
extends: .dind_base
script: script:
- docker build -t $CI_REGISTRY_IMAGE slides/. - docker build -t $CI_REGISTRY_IMAGE slides/.
- docker push $CI_REGISTRY_IMAGE - docker push $CI_REGISTRY_IMAGE
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment