-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
70 lines (60 loc) · 1.41 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
62
63
64
65
66
67
68
69
variables:
# GIT_STRATEGY: clone
before_script:
- /bin/bash ./BuildEnv/getVersion.sh
- /bin/bash ./BuildEnv/initialize.sh
- /bin/bash -c "ansible-playbook -i \"localhost,\" -c local ./BuildEnv/Ansible/buildEnv.yml --verbose"
stages:
- build
- cleanup_builds
- test
- deploy
# sec scans
- activateProd
# monitoring
- cleanup
buildContainers:
stage: build
script:
- /bin/bash -c "ansible-playbook -i \"localhost,\" -c local ./BuildEnv/Ansible/containerBuild.yml --verbose"
tags:
- linux
purgeBuilds:
stage: cleanup_builds
script:
- sudo /bin/bash -c "rm -rf ./book-website/build/"
tags:
- linux
when: on_failure
testContainers:
stage: test
script:
- /bin/bash -c "ansible-playbook -i \"localhost,\" -c local ./test/test_runner.yml --verbose"
tags:
- linux
deployToK8s:
stage: deploy
script:
- /bin/bash ./BuildEnv/deploy2K8s.sh
- /bin/bash ./k8s-apps/deploymentTest.sh
- /bin/bash ./BuildEnv/deployK8sServices.sh
tags:
- linux
complianceEval:
stage: deploy
script:
- /bin/bash -c "ansible-playbook -i \"localhost,\" -c local ./BuildEnv/Ansible/complianceRunner.yml --verbose"
tags:
- linux
purgeACRrepos:
stage: cleanup
script:
- /bin/bash ./BuildEnv/deleteACRRepos.sh
tags:
- linux
purgeDeployments:
stage: cleanup
script:
- /bin/bash ./BuildEnv/deleteDeployments.sh
tags:
- linux