From 20752241f4c7c9397c531949b8a68100dacd9d86 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 13 Mar 2019 18:33:30 +0100 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 142054d..2305683 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,15 +1,10 @@ -image: docker:latest - -services: - - docker:dind - -before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - build: - stage: build + image: docker:latest script: - - docker build --pull -t $CI_REGISTRY_IMAGE . - - docker push $CI_REGISTRY_IMAGE + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - docker build --pull -t $CI_REGISTRY_IMAGE . + - docker push $CI_REGISTRY_IMAGE + services: + - docker:dind tags: - - docker \ No newline at end of file + - docker \ No newline at end of file