mirror of
https://github.com/GoodOlClint/PSProxmoxVE.git
synced 2026-07-26 07:58:14 +00:00
fix: always use shared mount for WORK_DIR, never RUNNER_TEMP
RUNNER_TEMP (/__w/_temp in CI) is container-local and invisible to the Docker host. Files written there can't be bind-mounted into sibling containers (answer server, storage). This was the root cause of the "not a directory" mount failures in CI. Removed RUNNER_TEMP from the WORK_DIR fallback chain. WORK_DIR now always defaults to CACHE_DIR/work (/opt/pve-integration/work/) which is on the shared mount visible to both the CI container and Docker host. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,10 @@ REPO_ROOT="$(cd "$INFRA_DIR/../.." && pwd)"
|
|||||||
|
|
||||||
# ── Defaults ────────────────────────────────────────────────────────
|
# ── Defaults ────────────────────────────────────────────────────────
|
||||||
CACHE_DIR="${CACHE_DIR:-/opt/pve-integration}"
|
CACHE_DIR="${CACHE_DIR:-/opt/pve-integration}"
|
||||||
WORK_DIR="${WORK_DIR:-${RUNNER_TEMP:-$CACHE_DIR/work}}"
|
# Always use a path under CACHE_DIR (shared mount) so files are visible
|
||||||
|
# to sibling Docker containers. Do NOT use RUNNER_TEMP — it's container-local
|
||||||
|
# in CI and invisible to the Docker host.
|
||||||
|
WORK_DIR="${WORK_DIR:-$CACHE_DIR/work}"
|
||||||
CONFIG_FILE="${CONFIG_FILE:-$WORK_DIR/config.json}"
|
CONFIG_FILE="${CONFIG_FILE:-$WORK_DIR/config.json}"
|
||||||
MODULE_ARTIFACT="${MODULE_ARTIFACT:-$REPO_ROOT/publish/netstandard2.0}"
|
MODULE_ARTIFACT="${MODULE_ARTIFACT:-$REPO_ROOT/publish/netstandard2.0}"
|
||||||
PVE_VERSIONS="${PVE_VERSIONS:-9 8}"
|
PVE_VERSIONS="${PVE_VERSIONS:-9 8}"
|
||||||
|
|||||||
Reference in New Issue
Block a user