.gitlab-ci.yml 437 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
2
3
4
5
6
7
8
9
10
11
12
13
stages:
    - deploy
    - teardown

variables:
  KUBECTL: "transit/kubectl-plus:v1.19.4"
  CLUSTER: "rig.th-luebeck.dev"

yelb:
    stage: deploy
    image: $KUBECTL
    script:
        - NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
Nane Kratzke's avatar
Nane Kratzke committed
14
15
        - VHOST=yelb.$NS.$CLUSTER VHOST2=yelb.$NS.$CLUSTER mo deploy/yelb.yaml
        - VHOST=yelb.$NS.$CLUSTER VHOST2=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl apply -f -