Commit ee1dd37e authored by Hogne Håskjold's avatar Hogne Håskjold
Browse files

Change to use gitlab helpers and change the URLs vars to the way we usually do it

parent cfd4d229
Pipeline #48112 failed with stages
in 41 seconds
image: registry.uninett.no/asm/kubernetes-deploy:v0.22
include:
- project: 'asm/gitlab-ci-helpers'
file: '/gitlab-ci-helpers.yml'
variables:
KUBE_PROD_DOMAIN: eduroam-configurator-prod.paas2.uninett.no
KUBE_TEST_ID: eduroam-configurator
HTTP_PORT: '80' # The port number of the web server.
REPLICAS: '2'
REPLICAS: '1'
stages:
- build
- review
- staging
- production
build:
extends: .docker-build
variables:
GIT_SUBMODULE_STRATEGY: recursive
stage: build
script:
- build
only:
- branches
production:
extends: .production
stage: production
variables:
CI_ENVIRONMENT_URL: $KUBE_PROD_URL
REPLICAS: "2"
script:
- deploy kubernetes.yaml
environment:
name: production
url: $KUBE_PROD_URL
when: manual
only:
- master
staging:
extends: .staging
stage: staging
variables:
CI_ENVIRONMENT_URL: $KUBE_STAGING_URL
REPLICAS: '1'
script:
- deploy kubernetes.yaml
environment:
name: staging
url: $KUBE_STAGING_URL
only:
- master
review:
extends: .review
stage: review
script:
- deploy kubernetes.yaml
stop_review:
extends: .stop_review
stage: review
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