File suffix support for CF_API_KEY (#3489)

This commit is contained in:
Byron Collins
2025-06-05 21:35:26 +09:00
committed by GitHub
parent 0ba63777a3
commit f84171dca2
9 changed files with 67 additions and 2 deletions

3
tests/.gitignore vendored
View File

@@ -1 +1,2 @@
data/
data/
cf_api_key.secret

View File

@@ -0,0 +1,18 @@
services:
mc:
image: ${IMAGE_TO_TEST:-itzg/minecraft-server}
environment:
EULA: "true"
SETUP_ONLY: "TRUE"
MODPACK_PLATFORM: AUTO_CURSEFORGE
CF_API_KEY_FILE: /run/secrets/cf_api_key
CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/the-pixelmon-modpack/files/5954570
DEBUG: true
volumes:
- ./data:/data
secrets:
- cf_api_key
secrets:
cf_api_key:
file: cf_api_key.secret

View File

@@ -0,0 +1,2 @@
[[ -n "$CF_API_KEY" ]] || exit 1
echo "$CF_API_KEY" > cf_api_key.secret || exit 1

View File

@@ -0,0 +1,2 @@
mc-image-helper assert fileExists "/data/mods/ExplorersCompass-1.16.5-1.1.2-forge.jar"
mc-image-helper assert fileExists "/data/forge-1.16.5-36.2.34.jar"