Aktualisieren .gitlab-ci.yml

This commit is contained in:
Patrick Jentsch 2019-03-11 23:30:28 +01:00
parent 6951fda4b6
commit 21bdc34d31

View File

@ -4,10 +4,10 @@ services:
- docker:dind
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker push "$CI_REGISTRY_IMAGE"
- docker build --pull -t $CI_REGISTRY_IMAGE .
- docker push $CI_REGISTRY_IMAGE