.gitlab-ci.yml 489 Bytes
Newer Older
Nane Kratzke's avatar
Nane Kratzke committed
1
2
variables:
    GREET: "Mundo"
Nane Kratzke's avatar
Nane Kratzke committed
3
    K8S_NS: "my-funky-project"
Nane Kratzke's avatar
Nane Kratzke committed
4

Nane Kratzke's avatar
Nane Kratzke committed
5
stages:
Nane Kratzke's avatar
Nane Kratzke committed
6
    - info
Nane Kratzke's avatar
Nane Kratzke committed
7
    - shutdown
Nane Kratzke's avatar
Nane Kratzke committed
8

Nane Kratzke's avatar
Nane Kratzke committed
9
k8s:
Nane Kratzke's avatar
Nane Kratzke committed
10
    stage: info
Nane Kratzke's avatar
Nane Kratzke committed
11
    image: "lwolf/kubectl_deployer"
Nane Kratzke's avatar
Nane Kratzke committed
12
    script:
Nane Kratzke's avatar
Nane Kratzke committed
13
        - "kubectl create namespace $K8S_NS --kubeconfig=$KUBE_CONFIG || :"
Nane Kratzke's avatar
Nane Kratzke committed
14
        - kubectl get all --kubeconfig=$KUBE_CONFIG --namespace=$K8S_NS
Nane Kratzke's avatar
Nane Kratzke committed
15
16
17

shutdown:
    stage: shutdown
Nane Kratzke's avatar
Nane Kratzke committed
18
    image: lwolf/kubectl_deployer
Nane Kratzke's avatar
Nane Kratzke committed
19
    script:
Nane Kratzke's avatar
Nane Kratzke committed
20
        - kubectl delete all --all --namespace=$K8S_NS --kubeconfig=$KUBE_CONFIG
Nane Kratzke's avatar
Nane Kratzke committed
21
    when: manual