forked from jobtome-labs/ci-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kubernetes-task-multiregion.yml
68 lines (65 loc) · 2.15 KB
/
kubernetes-task-multiregion.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
include:
- remote: 'https://raw.githubusercontent.com/jobtome-labs/ci-templates/v3.0.1/kubernetes-task-quality.yml'
task:production:europe:
extends: .task
variables:
NAMESPACE: ${NAMESPACE_PRODUCTION_EUROPE}
GOOGLE_KEY: ${GOOGLE_KEY_PRODUCTION_EUROPE}
CLUSTER_NAME: ${CLUSTER_NAME_PRODUCTION_EUROPE}
CLUSTER_ZONE: ${CLUSTER_ZONE_PRODUCTION_EUROPE}
KUBERNETES_SCRIPT: ${KUBERNETES_SCRIPT_PRODUCTION_EUROPE}
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_PRODUCTION_EUROPE" "CLUSTER_NAME_PRODUCTION_EUROPE" "CLUSTER_ZONE_PRODUCTION_EUROPE" "KUBERNETES_SCRIPT_PRODUCTION_EUROPE"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' variable!"
exit 1
fi
done
only:
- /^v.+$/i
except:
- branches
task:production:america:
extends: .task
variables:
NAMESPACE: ${NAMESPACE_PRODUCTION_AMERICA}
GOOGLE_KEY: ${GOOGLE_KEY_PRODUCTION_AMERICA}
CLUSTER_NAME: ${CLUSTER_NAME_PRODUCTION_AMERICA}
CLUSTER_ZONE: ${CLUSTER_ZONE_PRODUCTION_AMERICA}
KUBERNETES_SCRIPT: ${KUBERNETES_SCRIPT_PRODUCTION_AMERICA}
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_PRODUCTION_AMERICA" "CLUSTER_NAME_PRODUCTION_AMERICA" "CLUSTER_ZONE_PRODUCTION_AMERICA" "KUBERNETES_SCRIPT_PRODUCTION_AMERICA"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' variable!"
exit 1
fi
done
only:
- /^v.+$/i
except:
- branches
task:production:asia:
extends: .task
variables:
NAMESPACE: ${NAMESPACE_PRODUCTION_ASIA}
GOOGLE_KEY: ${GOOGLE_KEY_PRODUCTION_ASIA}
CLUSTER_NAME: ${CLUSTER_NAME_PRODUCTION_ASIA}
CLUSTER_ZONE: ${CLUSTER_ZONE_PRODUCTION_ASIA}
KUBERNETES_SCRIPT: ${KUBERNETES_SCRIPT_PRODUCTION_ASIA}
before_script:
- |
# CHECK VARIABLES PHASE
for var in "GOOGLE_KEY_PRODUCTION_ASIA" "CLUSTER_NAME_PRODUCTION_ASIA" "CLUSTER_ZONE_PRODUCTION_ASIA" "KUBERNETES_SCRIPT_PRODUCTION_ASIA"; do
if [ -z "${!var}" ]; then
echo "Missing '${var}' variable!"
exit 1
fi
done
only:
- /^v.+$/i
except:
- branches