.gitlab-ci.yml 1.28 KB
Newer Older
Marian Babik's avatar
Marian Babik committed
1
2
3
4
5
variables:
  DOCKER_VERSION: "17.05"

build:etf_cms_qa:
  stage: build
Marian Babik's avatar
Marian Babik committed
6
  environment: master
Marian Babik's avatar
Marian Babik committed
7
8
  script: "echo Done"
  only:
Marian Babik's avatar
Marian Babik committed
9
    - master
Marian Babik's avatar
Marian Babik committed
10
11
12
13
14
  tags:
    - docker-image-build
  variables:
    TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms:qa

Marian Babik's avatar
Marian Babik committed
15
16
17
18
19
20
21
22
23
24
25
26
build:etf_cms_ipv6_qa:
  stage: build
  environment: master
  script: "echo Done"
  only:
    - master
  tags:
    - docker-image-build
  variables:
    DOCKER_FILE: Dockerfile_IPv6
    TO: gitlab-registry.cern.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME/etf-cms-ipv6:qa

Marian Babik's avatar
Marian Babik committed
27

28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#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
Marian Babik's avatar
Marian Babik committed
47