-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DEVOPS-271: Feat/gpg tests and examples (#6)
* add gpg, rpm and deb examples * added test files
- Loading branch information
Showing
5 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: GPG sign DEB | ||
on: workflow_dispatch | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: setup GPG | ||
uses: ./shared-workflows/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" | ||
|
||
- name: GPG sign deb # gpg sign and verify deb packages | ||
run: | | ||
dpkg-sig --sign builder tests/*.deb | ||
dpkg-sig --verify tests/*.deb |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: GPG sign file | ||
on: workflow_dispatch | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: setup GPG | ||
uses: ./shared-workflows/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" | ||
|
||
- name: GPG sign artifacts # Signing other artifacts | ||
env: | ||
GPG_TTY: no-tty | ||
GPG_PASSPHRASE: ${{ secrets.GPG_PASS }} | ||
run: | | ||
gpg --detach-sign --no-tty --batch --yes --output README.md.asc --passphrase "$GPG_PASSPHRASE" README.md | ||
gpg --verify README.md.asc README.md |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: GPG sign RPM | ||
on: workflow_dispatch | ||
jobs: | ||
security: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: setup GPG | ||
uses: ./shared-workflows/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" | ||
|
||
- name: Sign and check rpm # gpg sign and verify rpm packages | ||
# your rpm here | ||
run: | | ||
rpm --addsign tests/*.rpm | ||
rpm --checksig tests/*.rpm | ||
Binary file not shown.
Binary file not shown.