From bda8b38a95e3cf54497b1e68996dbad85151c8ad Mon Sep 17 00:00:00 2001 From: Dorian Date: Thu, 26 Mar 2026 16:48:36 +0000 Subject: [PATCH] fix: CI pass absolute ARCHIPELAGO_BIN path through sudo sudo doesn't inherit env vars. Use absolute path and pass it explicitly so the ISO build finds the freshly built binary instead of falling through to podman build from source. Co-Authored-By: Claude Opus 4.6 (1M context) --- .gitea/workflows/build-iso.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-iso.yml b/.gitea/workflows/build-iso.yml index 6ca00697..9b7bff81 100644 --- a/.gitea/workflows/build-iso.yml +++ b/.gitea/workflows/build-iso.yml @@ -36,8 +36,10 @@ jobs: - name: Build unbundled ISO run: | cd image-recipe - sudo UNBUNDLED=1 DEV_SERVER=localhost BUILD_FROM_SOURCE=0 \ - ARCHIPELAGO_BIN=../core/target/release/archipelago \ + export ARCHIPELAGO_BIN="$(pwd)/../core/target/release/archipelago" + ls -la "$ARCHIPELAGO_BIN" || echo "WARNING: binary not found" + sudo -E UNBUNDLED=1 DEV_SERVER=localhost BUILD_FROM_SOURCE=0 \ + ARCHIPELAGO_BIN="$ARCHIPELAGO_BIN" \ ./build-auto-installer-iso.sh - name: Copy to Builds