.gitlab-ci.yml 725 Bytes
Newer Older
1 2 3
include:
  - project: 'asm/gitlab-ci-helpers'
    file: '/gitlab-ci-helpers.yml'
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

variables:
  KUBE_PROD_DOMAIN: dkim.paas2.uninett.no
  KUBE_TEST_ID: dkim
  HTTP_PORT: '80' # The port number of the web server.
  REPLICAS: '1'

stages:
  - build
  - test
  - review
  - staging
  - production

build:
19
  extends: .docker-build
20 21 22 23 24
  stage: build
  only:
    - branches

production:
25
  extends: .production
26 27 28 29 30 31 32
  stage: production
  variables:
    REPLICAS: "2"
  script:
    - deploy dist/kubernetes.yml

staging:
33
  extends: .staging
34 35 36 37 38
  stage: staging
  script:
    - deploy dist/kubernetes.yml

review:
39
  extends: .review
40 41 42 43 44
  stage: review
  script:
    - deploy dist/kubernetes.yml

stop_review:
45
  extends: .stop_review
46
  stage: review