Skip to content

Try to fix sporadic gpg signing failures #9

Try to fix sporadic gpg signing failures

Try to fix sporadic gpg signing failures #9

Workflow file for this run

name: Debug GPG
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Clone the repositories
run: |
git clone https://github.com/canonical/dqlite
git clone https://github.com/canonical/dqlite-ppa -b dqlite --depth 1
- name: Setup dependencies
run: |
sudo apt-get update -qq
sudo apt-get install -qq debhelper devscripts gnupg
- name: Setup GPG signing key
env:
DUMMY_SECRET_KEY: ${{ secrets.DUMMY_SECRET_KEY }}
run: |
echo "$DUMMY_SECRET_KEY" > private-key.asc
sha256sum private-key.asc
wc private-key.asc
gpg --import --batch private-key.asc
- name: Delete GPG signing key file
if: always()
run: |
rm -f private-key.asc
- name: Build source package
env:
DEBFULLNAME: "nobody"
DEBEMAIL: "[email protected]"
TARGET: "noble"
run: |
cp -R dqlite-ppa/debian dqlite/
cd dqlite/
VERSION="$(git describe --tags | sed -e "s/^v//" -e "s/-/+git/")"
dch --create \
--distribution ${TARGET} \
--package dqlite \
--newversion ${VERSION}~${TARGET}1 \
"Automatic build from Github"
debuild -S -sa -d -k${{ vars.DUMMY_PUBLIC_KEY }}