diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 68e60c4b..3be41b0f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,23 @@ stages: - build - deploy - -build-prod: + +build-dev: stage: build when: on_success only: - main - dev-landing-v2 - - prod - image: + image: name: docker:25.0.3-cli services: - name: docker:25.0.3-dind command: ["--insecure-registry=38.47.185.86:8900"] script: - docker logout - - echo "Username:$DEPLOY_USERNAME" - - echo "Token:$DEPLOY_TOKEN" - - echo "$DEPLOY_TOKEN" | docker login 38.47.185.86:8900 --username "$DEPLOY_USERNAME" --password-stdin - - docker build --no-cache -t 38.47.185.86:8900/mediahub/new-mediahub-fe:prod . - - docker push 38.47.185.86:8900/mediahub/new-mediahub-fe:prod + - docker login -u $DEPLOY_USERNAME -p $DEPLOY_TOKEN 38.47.185.86:8900 + - docker build -t 38.47.185.86:8900/mediahub/new-mediahub-fe:dev . + - docker push 38.47.185.86:8900/mediahub/new-mediahub-fe:dev auto-deploy: stage: deploy