Setup docker variables
This commit is contained in:
parent
018e0bfb9f
commit
0794dee473
|
@ -116,14 +116,19 @@ deploy-dev-docker:
|
||||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_COMMIT_TAG
|
||||||
|
|
||||||
deploy-prod-docker:
|
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:
|
dependencies:
|
||||||
- build-musl-bin
|
- build-musl-bin
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
script:
|
script:
|
||||||
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
|
- docker login -u $DOCKERHUB_USER -p $DOCKERHUB_PASS
|
||||||
- docker build -t https://index.docker.io/v1/fivesigma/vade .
|
- docker build -t fivesigma/vade .
|
||||||
- docker push https://index.docker.io/v1/fivesigma/vade
|
- docker push fivesigma/vade
|
||||||
# rules:
|
# rules:
|
||||||
# - if: $CI_COMMIT_TAG
|
# - if: $CI_COMMIT_TAG
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue