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) <noreply@anthropic.com>
This commit is contained in:
Dorian 2026-03-26 16:48:36 +00:00
parent 9e98c65dae
commit 55bceeda35

View File

@ -36,8 +36,10 @@ jobs:
- name: Build unbundled ISO - name: Build unbundled ISO
run: | run: |
cd image-recipe cd image-recipe
sudo UNBUNDLED=1 DEV_SERVER=localhost BUILD_FROM_SOURCE=0 \ export ARCHIPELAGO_BIN="$(pwd)/../core/target/release/archipelago"
ARCHIPELAGO_BIN=../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 ./build-auto-installer-iso.sh
- name: Copy to Builds - name: Copy to Builds