From 0306a7cc45d9229bb2fed9bb875e1d4b2ad85816 Mon Sep 17 00:00:00 2001 From: luke Date: Sat, 17 Aug 2019 10:46:40 -0700 Subject: [PATCH] another try --- .gitlab-ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bed4092b..0cb8dfef 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,6 +1,14 @@ image: docker:latest services: - - docker:dind + - name: docker:dind + entrypoint: ["env", "-u", "DOCKER_HOST"] + command: ["dockerd-entrypoint.sh"] + +variables: + DOCKER_HOST: tcp://docker:2375/ + DOCKER_DRIVER: overlay2 + # See https://github.com/docker-library/docker/pull/166 + DOCKER_TLS_CERTDIR: "" stages: - linting @@ -20,11 +28,6 @@ build_and_push_container: - apk add --no-cache python3 - pip3 install -r app/requirements.txt stage: deploy - variables: - DOCKER_HOST: tcp://docker:2375/ - DOCKER_DRIVER: overlay2 - # See https://github.com/docker-library/docker/pull/166 - DOCKER_TLS_CERTDIR: "" script: - docker login -u ldooks -p $DOCKER_PASSWORD - docker build -t ldooks/dragon-bot:latest .