Skip to content

Commit dcce51e

Browse files
committed
deploy coop v64 test
1 parent 1714271 commit dcce51e

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

apps/faf-legacy-deployment/templates/deploy-coop.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ metadata:
55
labels:
66
app: faf-deploy-coop
77
data:
8-
PATCH_VERSION: "66"
8+
PATCH_VERSION: "64"
99
DATABASE_HOST: "mariadb"
1010
DATABASE_NAME: "faf_lobby"
11-
"deploy-coop.py": |-
12-
{{ tpl ( .Files.Get "scripts/deploy-coop.py" ) . | indent 4 }}
11+
"build.gradle.kts": |-
12+
{{ tpl ( .Files.Get "scripts/build.gradle.kts" ) . | indent 4 }}
13+
"CoopDeployer.kt": |-
14+
{{ tpl ( .Files.Get "scripts/CoopDeployer.kt" ) . | indent 4 }}
1315

1416
---
1517

@@ -35,21 +37,24 @@ spec:
3537
template:
3638
spec:
3739
containers:
38-
- image: python:3.13
40+
- image: gradle:9.2-jdk21
3941
imagePullPolicy: Always
4042
name: faf-coop-deployment
43+
workingDir: /workspace
4144
envFrom:
4245
- configMapRef:
4346
name: faf-deploy-coop
4447
- secretRef:
4548
name: faf-legacy-deployment
46-
command: [ "sh" ]
47-
args: [ "-c", "pip install mysql-connector-python && python3 /tmp/deploy-coop.py" ]
49+
command: [ "gradle", "run" ]
4850
volumeMounts:
49-
- mountPath: /tmp/deploy-coop.py
51+
- mountPath: /workspace/build.gradle.kts
5052
name: faf-deploy-coop
51-
subPath: "deploy-coop.py"
52-
- mountPath: /tmp/legacy-featured-mod-files
53+
subPath: "build.gradle.kts"
54+
- mountPath: /workspace/CoopDeployer.kt
55+
name: faf-deploy-coop
56+
subPath: "CoopDeployer.kt"
57+
- mountPath: /workspace/legacy-featured-mod-files
5358
name: faf-featured-mods
5459
restartPolicy: Never
5560
volumes:

0 commit comments

Comments
 (0)