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