another try

This commit is contained in:
luke 2019-08-17 10:46:40 -07:00
parent 38981f5de1
commit 0306a7cc45

View File

@ -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 .