fix: Remove ci.yml abuild-keygen (step isolation breaks key persistence)
Some checks failed
CI/CD Pipeline / Build Debian Package (push) Has been cancelled
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 / Code Format (push) Has been cancelled
Some checks failed
CI/CD Pipeline / Build Debian Package (push) Has been cancelled
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 / Code Format (push) Has been cancelled
This commit is contained in:
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -151,17 +151,7 @@ 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
|
||||||
# Generate keys and capture the key path from output
|
# NOTE: abuild-keygen is now done inside build-alpine.sh to ensure keys persist in same shell session
|
||||||
abuild-keygen -a -n 2>&1 | tee /tmp/keygen.log
|
|
||||||
# Find the actual key file (handles missing username prefix)
|
|
||||||
KEYFILE=$(ls /root/.abuild/*.rsa 2>/dev/null | head -1)
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user