Update publish in gitlab-ci.yml

This commit is contained in:
Aarni Halinen
2019-05-22 03:03:26 +00:00
parent effd58a424
commit 4b3b8be4e4
+4 -2
View File
@@ -48,12 +48,14 @@ remark:
publish:
stage: publish
image: docker:latest
image: docker:stable
services:
- docker:stable-dind
only:
- develop
before_script:
- docker info
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $REGISTRY_URL
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
script:
- docker build . -t "$IMAGE_NAME"
- docker push "$IMAGE_NAME"