Skip to content

Commit bb65cb6

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

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

apps/faf-legacy-deployment/scripts/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
kotlin("jvm") version "2.3.0"
2+
kotlin("jvm") version "2.1.0"
33
application
44
}
55

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

Lines changed: 12 additions & 8 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,20 +37,22 @@ spec:
3537
template:
3638
spec:
3739
containers:
38-
- image: python:3.13
40+
- image: gradle:9.0-jdk21
3941
imagePullPolicy: Always
4042
name: faf-coop-deployment
4143
envFrom:
4244
- configMapRef:
4345
name: faf-deploy-coop
4446
- secretRef:
4547
name: faf-legacy-deployment
46-
command: [ "sh" ]
47-
args: [ "-c", "pip install mysql-connector-python && python3 /tmp/deploy-coop.py" ]
48+
command: [ "gradle", "run" ]
4849
volumeMounts:
49-
- mountPath: /tmp/deploy-coop.py
50+
- mountPath: /home/gradle/build.gradle.kts
5051
name: faf-deploy-coop
51-
subPath: "deploy-coop.py"
52+
subPath: "build.gradle.kts"
53+
- mountPath: /home/gradle/CoopDeployer.kt
54+
name: faf-deploy-coop
55+
subPath: "CoopDeployer.kt"
5256
- mountPath: /tmp/legacy-featured-mod-files
5357
name: faf-featured-mods
5458
restartPolicy: Never

0 commit comments

Comments
 (0)