Skip to content

Commit

Permalink
Fix build job to sign rpms for release and nightly builds (#318)
Browse files Browse the repository at this point in the history
* ammend release job

* update

* use crazy-max/ghaction-import-gpg@openpgp5 version

* revert version

* update public key

* use key id

* ammend release files

* ammend release artefacts for legacy

* update versions for test
  • Loading branch information
purbon authored Sep 10, 2021
1 parent f902393 commit eb14fa5
Show file tree
Hide file tree
Showing 6 changed files with 90 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-integration-test-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
matrix:
os: [ubuntu-latest]
java: [8]
cpversion: [5.5.3, 6.0.2, 6.1.0]
cpversion: [6.1.2, 6.2.0]

runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-integration-test-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
matrix:
os: [ubuntu-latest]
java: [11.0.x]
cpversion: [5.5.3, 6.0.2, 6.1.0]
cpversion: [6.1.2, 6.2.0]

runs-on: ${{ matrix.os }}

Expand Down
22 changes: 12 additions & 10 deletions .github/workflows/nightly-artifacts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Import private GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Import public GPG Key
run: rpm --import release/keys/public.key
- uses: docker/setup-buildx-action@v1
- name: Set up the JDK
uses: actions/setup-java@v1
Expand Down Expand Up @@ -75,19 +67,29 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Import private GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Import public GPG Key
run: rpm --import release/keys/public.key
- name: Build the rpm
run: mvn rpm:rpm
- name: Sign rpm
run: |
rpm --define "_gpg_name $GPG_KEY_NAME" --addsign target/rpm/julie-ops/RPMS/noarch/*.rpm
rpm --define "_gpg_name ${{ steps.import_gpg.outputs.keyid }}" --addsign target/rpm/julie-ops/RPMS/noarch/*.rpm
rpm --checksig target/rpm/julie-ops/RPMS/noarch/*.rpm
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_NAME: ${{ steps.import_gpg.outputs.email }}
- name: Sign deb
run: |
sudo apt-get install dpkg-sig -y
dpkg-sig -k $GPG_KEY_NAME --sign builder $FILE target/*.deb
dpkg-sig -k ${{ steps.import_gpg.outputs.keyid }} --sign builder $FILE target/*.deb
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_NAME: ${{ steps.import_gpg.outputs.email }}
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/release-artifacts-build-legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,29 @@ jobs:
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Import private GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Import public GPG Key
run: rpm --import release/keys/public.key
- name: Build the rpm
run: mvn rpm:rpm
- name: Sign rpm
run: |
rpm --define "_gpg_name ${{ steps.import_gpg.outputs.keyid }}" --addsign target/rpm/julie-ops/RPMS/noarch/*.rpm
rpm --checksig target/rpm/julie-ops/RPMS/noarch/*.rpm
- name: Sign deb
run: |
sudo apt-get install dpkg-sig -y
dpkg-sig -k ${{ steps.import_gpg.outputs.keyid }} --sign builder $FILE target/*.deb
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_NAME: ${{ steps.import_gpg.outputs.email }}
- uses: actions/upload-artifact@v2
with:
name: RPM package
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release-artifacts-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ jobs:
- uses: actions/checkout@v2
- name: Import private GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v3
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: Import public GPG Key
run: rpm --import release/keys/public.key
- name: Set up the JDK
Expand All @@ -34,15 +36,15 @@ jobs:
run: mvn rpm:rpm
- name: Sign rpm
run: |
rpm --define "_gpg_name $GPG_KEY_NAME" --addsign target/rpm/julie-ops/RPMS/noarch/*.rpm
rpm --define "_gpg_name ${{ steps.import_gpg.outputs.keyid }}" --addsign target/rpm/julie-ops/RPMS/noarch/*.rpm
rpm --checksig target/rpm/julie-ops/RPMS/noarch/*.rpm
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_NAME: ${{ steps.import_gpg.outputs.email }}
- name: Sign deb
run: |
sudo apt-get install dpkg-sig -y
dpkg-sig -k $GPG_KEY_NAME --sign builder $FILE target/*.deb
dpkg-sig -k ${{ steps.import_gpg.outputs.keyid }} --sign builder $FILE target/*.deb
env:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
GPG_KEY_NAME: ${{ steps.import_gpg.outputs.email }}
Expand Down
65 changes: 49 additions & 16 deletions release/keys/public.key
Original file line number Diff line number Diff line change
@@ -1,19 +1,52 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQENBF8q4tcBCADUXVN8G0smSfgHz7EmgN2Ou69kFjMfv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