Commit cd9c3e50 authored by Marian Babik's avatar Marian Babik
Browse files

added prod deploy

parent f0c6e69b
......@@ -12,6 +12,22 @@ build:etf_cms_qa:
variables:
TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:qa
deploy:production:
tags:
- docker-privileged
dependencies:
- build:etf_cms_qa
stage: deploy
image: docker:latest
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
#build:triggers_qa:
# stage: deploy
# dependencies:
......@@ -32,16 +48,18 @@ build:etf_cms_qa:
# CONTEXT_DIR: etf-exp
# TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/exp:qa
build:etf_cms_stable:
stage: build
environment: production
script: "echo Done"
only:
- master
tags:
- docker-image-build
variables:
TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:latest
#build:etf_cms_stable:
# stage: build
# environment: production
# script: "echo Done"
# only:
# - master
# tags:
# - docker-image-build
# variables:
# TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:latest
#
#build:triggers_stable:
# stage: deploy
......
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