forked from gadiener/ci-templates
-
Notifications
You must be signed in to change notification settings - Fork 5
/
helm-only-quality.yml
87 lines (71 loc) · 2.25 KB
/
helm-only-quality.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
---
include:
- remote: "https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.37.2/templates/helm.yml"
deploy:quality:helm:
extends: .deploy:quality:helm
variables:
CI_COMMIT_TAG: ${CI_COMMIT_SHORT_SHA}
GOOGLE_KEY: ${GOOGLE_KEY_QUALITY}
CLUSTER_NAME: ${CLUSTER_NAME_QUALITY}
CLUSTER_ZONE: ${CLUSTER_ZONE_QUALITY}
DOMAIN: ${DOMAIN_QUALITY}
SECRET_YAML: ${SECRET_YAML_QUALITY}
NAMESPACE: ${NAMESPACE_QUALITY}
ENVIRONMENT: quality
ENVIRONMENT_NAME: quality
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_QUALITY" "CLUSTER_NAME_QUALITY" "CLUSTER_ZONE_QUALITY" "NAMESPACE_QUALITY" "DOMAIN_QUALITY"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' Variable!"
exit 1
fi
done
resource_group: quality
only:
- master
- /^qa.+$/i
verify:quality:
extends: .verify
stage: verify
variables:
GOOGLE_KEY: ${GOOGLE_KEY_QUALITY}
CLUSTER_NAME: ${CLUSTER_NAME_QUALITY}
CLUSTER_ZONE: ${CLUSTER_ZONE_QUALITY}
NAMESPACE: ${NAMESPACE_QUALITY}
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_QUALITY" "CLUSTER_NAME_QUALITY" "CLUSTER_ZONE_QUALITY" "NAMESPACE_QUALITY"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' Variable!"
exit 1
fi
done
only:
- master
- /^qa.+$/i
helm:diff:quality:
extends: .helm:diff
variables:
CI_COMMIT_TAG: ${CI_COMMIT_SHORT_SHA}
GOOGLE_KEY: ${GOOGLE_KEY_QUALITY}
CLUSTER_NAME: ${CLUSTER_NAME_QUALITY}
CLUSTER_ZONE: ${CLUSTER_ZONE_QUALITY}
DOMAIN: ${DOMAIN_QUALITY}
SECRET_YAML: ${SECRET_YAML_QUALITY}
NAMESPACE: ${NAMESPACE_QUALITY}
ENVIRONMENT: quality
ENVIRONMENT_NAME: quality
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_QUALITY" "CLUSTER_NAME_QUALITY" "CLUSTER_ZONE_QUALITY" "NAMESPACE_QUALITY" "DOMAIN_QUALITY"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' Variable!"
exit 1
fi
done
rules:
- if: '($ENABLE_HELM_DIFF == "true") && ($CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master") && (($CI_PIPELINE_SOURCE == "merge_request_event") || ($CI_PIPELINE_SOURCE == "parent_pipeline"))'