Private
Public Access
1
0

fix: resolve final build failures

debian/rules: Escape $HOME for make (use $$HOME)
  - Make interprets $H as variable, $$ escapes it

build-alpine.sh: Install signing public key
  - Copy .abuild/*.rsa.pub to /etc/apk/keys/
  - Fixes UNTRUSTED signature error on index update

build-arch.sh: Use /home/builduser/repo for all paths
  - PKGDIR=/home/builduser/repo/arch-package
  - WORKSPACE_DIR=/home/builduser/repo
  - Fixes permission denied on act cache path
This commit is contained in:
2026-04-27 01:06:56 +00:00
parent 9cb48a01eb
commit 09846848c6
3 changed files with 8 additions and 5 deletions

View File

@ -25,8 +25,8 @@ else
echo "Skipping cargo build (SKIP_CARGO_BUILD is set)"
fi
# Create package directory
PKGDIR=$(pwd)/arch-package
# Create package directory in /home/builduser/repo (accessible by builduser)
PKGDIR=/home/builduser/repo/arch-package
mkdir -p "$PKGDIR"/usr/bin
mkdir -p "$PKGDIR"/etc/linux_patch_api
mkdir -p "$PKGDIR"/usr/lib/systemd/system
@ -38,8 +38,8 @@ cp configs/linux-patch-api.service "$PKGDIR"/usr/lib/systemd/system/
cp configs/config.yaml.example "$PKGDIR"/etc/linux_patch_api/config.yaml
cp configs/whitelist.yaml.example "$PKGDIR"/etc/linux_patch_api/whitelist.yaml
# Determine workspace path for PKGBUILD
WORKSPACE_DIR=$(pwd)
# Use /home/builduser/repo as workspace for PKGBUILD
WORKSPACE_DIR=/home/builduser/repo
# Create PKGBUILD
echo "Creating PKGBUILD..."