Skip to content

Commit 186f16e

Browse files
committed
Try removing subpath again
1 parent 6b2cbdc commit 186f16e

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

apps/faf-legacy-deployment/templates/deploy-coop-maps.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: GRADLE_USER_HOME
42+
value: /tmp/gradle-home
4043
envFrom:
4144
- configMapRef:
4245
name: faf-deploy-coop
4346
- secretRef:
4447
name: faf-legacy-deployment
45-
command: [ "gradle", "deployCoopMaps" ]
48+
command:
49+
- "sh"
50+
- "-c"
51+
- "set +x && ls /scripts && cp -r /scripts /workspace && ls /workspace && gradle deployCoopMaps"
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: /scripts
4955
name: faf-deploy-scripts
50-
subPath: "build.gradle.kts"
51-
- mountPath: /workspace/CoopMapDeployer.kt
52-
name: faf-deploy-scripts
53-
subPath: "CoopMapDeployer.kt"
5456
- mountPath: /workspace/legacy-featured-mod-files
5557
name: faf-featured-mods
5658
restartPolicy: Never

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ spec:
3737
imagePullPolicy: Always
3838
name: faf-deploy-coop
3939
workingDir: /workspace
40+
env:
41+
- name: GRADLE_USER_HOME
42+
value: /tmp/gradle-home
4043
envFrom:
4144
- configMapRef:
4245
name: faf-deploy-coop
@@ -45,12 +48,8 @@ spec:
4548
command: [ "gradle", "deployCoop" ]
4649
# We need to mount single files via subpath because Gradle breaks otherwise (symbolic link to read-only directory)
4750
volumeMounts:
48-
- mountPath: /workspace/build.gradle.kts
51+
- mountPath: /workspace
4952
name: faf-deploy-scripts
50-
subPath: "build.gradle.kts"
51-
- mountPath: /workspace/CoopDeployer.kt
52-
name: faf-deploy-scripts
53-
subPath: "CoopDeployer.kt"
5453
- mountPath: /workspace/legacy-featured-mod-files
5554
name: faf-featured-mods
5655
restartPolicy: Never

0 commit comments

Comments
 (0)