Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Cole Miller <cole.miller@canonical.com>
  • Loading branch information
cole-miller committed Sep 16, 2024
1 parent efcad52 commit 3716cd3
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/debug-gpg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Debug GPG
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
environment:
name: debugging-gpg
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 dummy GPG signing key
run: |
echo "$DUMMY_SECRET_KEY" > 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: "nobody@example.org"
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$DUMMY_PUBLIC_KEY

0 comments on commit 3716cd3

Please sign in to comment.