ci: replace dpkg-sig with gpg --detach-sign (unavailable on Ubuntu 24.04)

Co-authored-by: Meliox <5264368+Meliox@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-08-09 11:46:39 +00:00 committed by GitHub
parent 6d79508640
commit d382515f2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,7 @@ jobs:
- name: Install build dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -y debhelper dpkg-dev dpkg-sig
sudo apt-get install -y debhelper dpkg-dev
- name: Import GPG key
env:
@ -72,8 +72,9 @@ jobs:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
run: |
DEB=$(ls ../pve-mod_*.deb)
dpkg-sig --sign builder -k "$GPG_KEY_ID" --gpg-options "--batch" "$DEB"
dpkg-sig --verify "$DEB"
gpg --batch --armor --detach-sign --local-user "$GPG_KEY_ID" \
-o "${DEB}.asc" "$DEB"
gpg --batch --verify "${DEB}.asc" "$DEB"
- name: Generate and sign checksums
env:
@ -99,14 +100,16 @@ jobs:
run: |
DEB=$(ls ../pve-mod_*.deb)
echo "deb=$DEB" >> "$GITHUB_OUTPUT"
echo "deb_asc=${DEB}.asc" >> "$GITHUB_OUTPUT"
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ steps.version.outputs.tag }}
DEB: ${{ steps.assets.outputs.deb }}
DEB_ASC: ${{ steps.assets.outputs.deb_asc }}
run: |
ASSETS="$DEB /tmp/SHA256SUMS /tmp/SHA256SUMS.asc"
ASSETS="$DEB $DEB_ASC /tmp/SHA256SUMS /tmp/SHA256SUMS.asc"
[[ -f install.sh ]] && ASSETS="$ASSETS install.sh"
gh release create "$TAG" \