Update .gitlab-ci.yml

This commit is contained in:
Patrick Jentsch 2019-03-13 18:33:11 +01:00
parent 60de865634
commit 684af197f1

View File

@ -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: build:
stage: build image: docker:latest
script: script:
- docker build --pull -t $CI_REGISTRY_IMAGE . - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
- docker push $CI_REGISTRY_IMAGE - docker build --pull -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE
services:
- docker:dind
tags: tags:
- docker - docker