summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo.khan@gmail.com>2019-09-02 11:11:46 -0600
committermo khan <mo.khan@gmail.com>2019-09-02 11:11:46 -0600
commitc548ca0e5890aac6d6add37bca35aa7979f1bc43 (patch)
treed92bf85bfafacd20bd45db3d37465617a6f667f6
parent2fd60540181a03798d3b35be1a7e19425c959d1b (diff)
enable overlay2
-rw-r--r--.gitlab-ci.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index de6c1ab..8d8a0be 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,13 @@
image: alpine:latest
+variables:
+ DOCKER_DRIVER: overlay2
services:
- docker:stable-dind
+before_script:
+ - docker info
+
stages:
- build
- test
@@ -12,7 +17,6 @@ build-image:
image: docker:stable
stage: build
script:
- - docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker build . -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
@@ -44,7 +48,6 @@ publish-image:
image: docker:stable
stage: release
script:
- - docker info
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest