REL- 554 - GPG Signing Setup #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GPG sign DEB | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
sign-deb: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: setup GPG | |
uses: ./devops/setup-gpg | |
with: | |
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} | |
gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }} | |
gpg-key-pass: ${{ secrets.GPG_PASS }} | |
gpg-key-name: "aerospike-inc" | |
# It is required to use ether rpm or gpg directly to cache the password. | |
# This should be fixed in the future | |
# You can instead use the --passphrase-file flag if you want | |
- name: Sign and check rpm # gpg sign and verify rpm packages | |
env: | |
GPG_TTY: no-tty | |
# your rpm here | |
run: | | |
rpm --addsign tests/*.rpm | |
rpm --checksig tests/*.rpm | |
- name: GPG sign deb # gpg sign and verify deb packages | |
env: | |
GPG_TTY: no-tty | |
run: | | |
dpkg-sig --sign builder tests/*.deb | |
dpkg-sig --verify tests/*.deb |