Skip to content

Commit a5e2d8e

Browse files
Brutus5000Sheikah45
authored andcommitted
Try removing subpath again
1 parent 114cef0 commit a5e2d8e

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

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

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ metadata:
55
labels:
66
app: faf-deploy-coop-maps
77
data:
8-
PATCH_VERSION: "v9.0.2"
98
DATABASE_HOST: "mariadb"
109
DATABASE_NAME: "faf_lobby"
1110

@@ -37,20 +36,22 @@ spec:
3736
imagePullPolicy: Always
3837
name: faf-deploy-coop
3938
workingDir: /workspace
39+
env:
40+
- name: PATCH_VERSION
41+
value: "9.0.2"
4042
envFrom:
4143
- configMapRef:
4244
name: faf-deploy-coop
4345
- secretRef:
4446
name: faf-legacy-deployment
45-
command: [ "gradle", "deployCoopMaps" ]
47+
command:
48+
- "sh"
49+
- "-c"
50+
- "cp /scripts/* /workspace && gradle deployCoopMaps"
4651
# We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
4752
volumeMounts:
48-
- mountPath: /workspace/build.gradle.kts
53+
- mountPath: /scripts
4954
name: faf-deploy-scripts
50-
subPath: "build.gradle.kts"
51-
- mountPath: /workspace/CoopMapDeployer.kt
52-
name: faf-deploy-scripts
53-
subPath: "CoopMapDeployer.kt"
5455
- mountPath: /workspace/legacy-featured-mod-files
5556
name: faf-featured-mods
5657
restartPolicy: Never

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,22 @@ spec:
3737
imagePullPolicy: Always
3838
name: faf-deploy-coop
3939
workingDir: /workspace
40+
env:
41+
- name: PATCH_VERSION
42+
value: "66"
4043
envFrom:
4144
- configMapRef:
4245
name: faf-deploy-coop
4346
- secretRef:
4447
name: faf-legacy-deployment
45-
command: [ "gradle", "deployCoop" ]
48+
command:
49+
- "sh"
50+
- "-c"
51+
- "cp /scripts/* /workspace && gradle deployCoop"
4652
# We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
4753
volumeMounts:
48-
- mountPath: /workspace/build.gradle.kts
54+
- mountPath: /workspace
4955
name: faf-deploy-scripts
50-
subPath: "build.gradle.kts"
51-
- mountPath: /workspace/CoopDeployer.kt
52-
name: faf-deploy-scripts
53-
subPath: "CoopDeployer.kt"
5456
- mountPath: /workspace/legacy-featured-mod-files
5557
name: faf-featured-mods
5658
restartPolicy: Never

0 commit comments

Comments
 (0)