forked from mayadata-io/e2e-gcp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
61 lines (57 loc) · 1.29 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
stages:
- cluster-setup
- infra-setup
- stateful-apps-deploy
- chaos-test
- cleanup
gcp-cluster:
image: atulabhi/kops:v8
stage: cluster-setup
script:
- chmod 775 ./script/gcp
- ./script/gcp
artifacts:
when: always
paths:
- .kube/
openebs_gcp_deploy:
image: atulabhi/kops:v8
stage: infra-setup
dependencies:
- gcp-cluster
script:
- echo "Setting up infrastructure"
- chmod 775 ./script/infra-setup
- ./script/infra-setup
artifacts:
paths:
- .kube-openebs/
apps-gcp-deploy:
stage: stateful-apps-deploy
image: atulabhi/kops:v8
script:
- chmod 775 ./script/stateful-app-deploy
- ./script/stateful-app-deploy
dependencies:
- openebs_gcp_deploy
Litmus-Chaos:
stage: chaos-test
image: atulabhi/kops:v8
script:
- echo " Introducing Chaos"
- mkdir ~/.kube
- cp .kube/config ~/.kube/config
- kubectl create -f https://raw.githubusercontent.com/atulabhi/litmus/v0.7-RC1/apps/percona/chaos/openebs_volume_replica_failure/run_litmus_test.yaml
- chmod 755 ./script/chaos
- ./script/chaos
dependencies:
- gcp-cluster
cleanup-gcp:
image: atulabhi/kops:v8
dependencies:
- gcp-cluster
stage: cleanup
script:
- chmod 775 ./script/gcp-cleanup
- ./script/gcp-cleanup
when: always