Commit 7b21eee4 authored by Marian Babik's avatar Marian Babik
Browse files

enable production deployment

parent 67294a10
......@@ -25,23 +25,23 @@ build:etf_cms_ipv6_qa:
TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms-ipv6:qa
#deploy:production:
# tags:
# - docker-privileged
# dependencies:
# - build:etf_cms_qa
# stage: deploy
# image: docker:19.03.1
# services:
# # To obtain a Docker daemon, request a Docker-in-Docker service
# - docker:19.03.1-dind
# variables:
# DOCKER_TLS_CERTDIR: "/certs"
# when: manual
# script:
# - docker info
# - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
# - docker pull gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:qa
# - docker tag gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:qa gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:prod
# - docker push gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:prod
deploy:production:
tags:
- docker-privileged
dependencies:
- build:etf_cms_qa
stage: deploy
image: docker:19.03.1
services:
# To obtain a Docker daemon, request a Docker-in-Docker service
- docker:19.03.1-dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
when: manual
script:
- docker info
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
- docker pull gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:qa
- docker tag gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:qa gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:prod
- docker push gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:prod
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment