Changed docker login around
This commit is contained in:
parent
5a8689d81e
commit
426bedffa3
|
@ -116,17 +116,12 @@ deploy-dev-docker:
|
|||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
|
||||
|
||||
deploy-prod-docker:
|
||||
variables:
|
||||
CI_REGISTRY_USER: $DOCKERHUB_USER
|
||||
CI_REGISTRY_PASSWORD: $DOCKERHUB_PASS
|
||||
CI_REGISTRY: docker.io
|
||||
CI_REGISTRY_IMAGE: index.docker.io/fivesigma/vade
|
||||
dependencies:
|
||||
- build-musl-bin
|
||||
stage: deploy
|
||||
image: docker:latest
|
||||
script:
|
||||
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD_PASS $CI_REGISTRY
|
||||
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS docker.io
|
||||
- docker build -t fivesigma/vade .
|
||||
- docker push fivesigma/vade
|
||||
# rules:
|
||||
|
|
Loading…
Reference in New Issue