-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathhelm-regional.yml
45 lines (43 loc) · 1.36 KB
/
helm-regional.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
include:
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v2.16.2/helm-quality.yml'
deploy:production:helm:
extends: .deploy:production:helm
variables:
GOOGLE_KEY: ${GOOGLE_KEY_PRODUCTION}
CLUSTER_NAME: ${CLUSTER_NAME_PRODUCTION}
CLUSTER_ZONE: ${CLUSTER_ZONE_PRODUCTION}
DOMAIN: ${DOMAIN_PRODUCTION}
SECRET_YAML: ${SECRET_YAML_PRODUCTION}
NAMESPACE: ${NAMESPACE_PRODUCTION}
ENVIRONMENT: production
ENVIRONMENT_NAME: production
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_PRODUCTION" "CLUSTER_NAME_PRODUCTION" "CLUSTER_ZONE_PRODUCTION" "NAMESPACE_PRODUCTION" "DOMAIN_PRODUCTION"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' variable!"
exit 1
fi
done
verify:production:
extends: .verify
stage: verify
variables:
GOOGLE_KEY: ${GOOGLE_KEY_PRODUCTION}
CLUSTER_NAME: ${CLUSTER_NAME_PRODUCTION}
CLUSTER_ZONE: ${CLUSTER_ZONE_PRODUCTION}
NAMESPACE: ${NAMESPACE_PRODUCTION}
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_PRODUCTION" "CLUSTER_NAME_PRODUCTION" "CLUSTER_ZONE_PRODUCTION" "NAMESPACE_PRODUCTION"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' variable!"
exit 1
fi
done
only:
- /^v.+$/i
except:
- branches