Update publish in gitlab-ci.yml

This commit is contained in:
Aarni Halinen
2019-05-22 03:00:59 +00:00
parent d03e43e4a2
commit 73df89b870
+4 -2
View File
@@ -41,12 +41,14 @@ sass:lint:
publish:
stage: publish
image: docker:latest
image: docker:stable
services:
- docker:stable-dind
only:
- master
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"