Private
Public Access
1
0

fix: Write PACKAGER_PRIVKEY directly to /etc/abuild.conf

This commit is contained in:
2026-04-14 02:38:54 +00:00
parent 1ee46b97ce
commit 8da407f9f2

View File

@ -151,11 +151,17 @@ jobs:
- name: Install build dependencies - name: Install build dependencies
run: | run: |
apk add --no-cache musl-dev openssl-dev git abuild gcc elogind-dev apk add --no-cache musl-dev openssl-dev git abuild gcc elogind-dev
abuild-keygen -a -n # Generate keys and capture the key path from output
# Find the generated key and set PACKAGER_PRIVKEY abuild-keygen -a -n 2>&1 | tee /tmp/keygen.log
export PACKAGER_PRIVKEY=$(ls /root/.abuild/*.rsa | head -1) # Find the actual key file (handles missing username prefix)
echo "PACKAGER_PRIVKEY=$PACKAGER_PRIVKEY" >> $GITHUB_ENV KEYFILE=$(ls /root/.abuild/*.rsa 2>/dev/null | head -1)
echo "Using key: $PACKAGER_PRIVKEY" if [ -z "$KEYFILE" ]; then
KEYFILE=$(ls /root/.abuild/-*.rsa 2>/dev/null | head -1)
fi
echo "Found key: $KEYFILE"
# Write directly to abuild.conf (more reliable than env var)
echo "PACKAGER_PRIVKEY=\"$KEYFILE\"" >> /etc/abuild.conf
cat /etc/abuild.conf
- name: Build APK package - name: Build APK package
run: ./build-alpine.sh run: ./build-alpine.sh
- name: Upload to releases (on tag) - name: Upload to releases (on tag)