Private
Public Access
1
0

fix: Export PACKAGER_PRIVKEY with proper variable expansion
Some checks failed
CI/CD Pipeline / Code Format (push) Successful in 12s
CI/CD Pipeline / Build RPM Package (push) Has been cancelled
CI/CD Pipeline / Build Alpine Package (push) Has been cancelled
CI/CD Pipeline / Build Arch Package (push) Has been cancelled
CI/CD Pipeline / Build Debian Package (push) Has been cancelled

This commit is contained in:
2026-04-14 03:12:07 +00:00
parent f33931ecfa
commit 8ee079c869

12
build-alpine.sh Executable file → Normal file
View File

@ -95,6 +95,18 @@ if [ "$(id -u)" = "0" ]; then
mkdir -p /home/builduser/.abuild
cp /root/.abuild/* /home/builduser/.abuild/
chown -R builduser:builduser /home/builduser/.abuild
# Find the actual key file
KEYFILE=$(ls /home/builduser/.abuild/*.rsa 2>/dev/null | head -1)
if [ -z "$KEYFILE" ]; then
KEYFILE=$(ls /home/builduser/.abuild/-*.rsa 2>/dev/null | head -1)
fi
echo "Key file: $KEYFILE"
echo "Key file exists: $(test -f "$KEYFILE" && echo YES || echo NO)"
# CRITICAL: Export PACKAGER_PRIVKEY (double quotes for variable expansion!)
export PACKAGER_PRIVKEY="$KEYFILE"
su - builduser -c "cd $(pwd) && abuild checksum && abuild -F -r"
else
abuild checksum