Update publish in gitlab-ci.yml
This commit is contained in:
+4
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user