-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdeploy-coop-maps.yaml
More file actions
53 lines (53 loc) · 1.56 KB
/
deploy-coop-maps.yaml
File metadata and controls
53 lines (53 loc) · 1.56 KB
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
kind: CronJob
apiVersion: batch/v1
metadata:
name: faf-deploy-coop-maps
namespace: faf-apps
labels:
app: faf-deploy-coop-maps
spec:
# Disabled because triggered manually
schedule: "0 0 31 2 *"
suspend: true
concurrencyPolicy: Forbid
jobTemplate:
metadata:
labels:
app: faf-deploy-coop-maps
annotations:
prometheus.io/scrape: 'false'
spec:
template:
spec:
containers:
- image: gradle:9.4-jdk21
imagePullPolicy: Always
name: faf-deploy-coop
workingDir: /workspace
env:
- name: PATCH_VERSION
value: "9.0.2"
envFrom:
- configMapRef:
name: faf-legacy-deployment
- secretRef:
name: faf-legacy-deployment
command:
- "sh"
- "-c"
- "cp /scripts/* /workspace && gradle deployCoopMaps"
# We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
volumeMounts:
- mountPath: /scripts
name: faf-deploy-scripts
- mountPath: /workspace/output
name: output
restartPolicy: Never
volumes:
- name: faf-deploy-scripts
configMap:
name: "faf-deploy-scripts"
- name: output
hostPath:
path: /opt/faf/data/maps
type: Directory