From 0794dee473865814c5c56b0cc6b07a0a2d3c863a Mon Sep 17 00:00:00 2001 From: Joe Bellus Date: Wed, 16 Feb 2022 21:42:02 -0500 Subject: [PATCH] Setup docker variables --- .gitlab-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7cce51e..32f49e4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -116,14 +116,19 @@ 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 $DOCKERHUB_USER -p $DOCKERHUB_PASS - - docker build -t https://index.docker.io/v1/fivesigma/vade . - - docker push https://index.docker.io/v1/fivesigma/vade + - docker build -t fivesigma/vade . + - docker push fivesigma/vade # rules: # - if: $CI_COMMIT_TAG