2021-01-24 21:16:22 +01:00
|
|
|
include:
|
2021-08-21 19:23:43 +02:00
|
|
|
- local: 'ci_templates/.cic-template.yml'
|
|
|
|
- local: 'apps/contract-migration/.gitlab-ci.yml'
|
2021-02-04 05:36:32 +01:00
|
|
|
- local: 'apps/cic-eth/.gitlab-ci.yml'
|
2021-02-06 19:28:08 +01:00
|
|
|
- local: 'apps/cic-ussd/.gitlab-ci.yml'
|
2021-02-07 03:29:24 +01:00
|
|
|
- local: 'apps/cic-notify/.gitlab-ci.yml'
|
2021-02-08 18:31:29 +01:00
|
|
|
- local: 'apps/cic-meta/.gitlab-ci.yml'
|
2021-02-18 06:04:30 +01:00
|
|
|
- local: 'apps/cic-cache/.gitlab-ci.yml'
|
2021-08-21 19:23:43 +02:00
|
|
|
- local: 'apps/data-seeding/.gitlab-ci.yml'
|
2021-01-24 21:16:22 +01:00
|
|
|
|
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
- test
|
2021-08-23 18:50:05 +02:00
|
|
|
- deploy
|
|
|
|
|
|
|
|
|
|
|
|
deploy-k8s-dev:
|
2021-08-23 19:40:32 +02:00
|
|
|
stage: deploy
|
|
|
|
image: dtzar/helm-kubectl
|
|
|
|
variables:
|
|
|
|
CI_DEBUG_TRACE: "true"
|
|
|
|
script:
|
|
|
|
- kubectl config set-cluster k8s --server="${K8S_DEV_SERVER}"
|
|
|
|
- kubectl config set clusters.k8s.certificate-authority-data ${K8S_DEV_CERTIFICATE_AUTHORITY_DATA}
|
|
|
|
- kubectl config set-credentials gitlab --token="${K8S_DEV_USER_TOKEN}"
|
2021-08-23 20:58:16 +02:00
|
|
|
- kubectl config set-context default --cluster=k8s --user=gitlab
|
|
|
|
- kubectl config use-context default
|
2021-08-23 19:40:32 +02:00
|
|
|
#- sed -i "s/<VERSION>/${CI_COMMIT_SHORT_SHA}/g" deployment.yaml
|
|
|
|
#- kubectl apply -f deployment.yaml
|
|
|
|
- kubectl get po
|