TUN-9941: Use new GPG key for RPM builds

* TUN-9941: Use new GPG key for RPM builds

Closes TUN-9941
This commit is contained in:
Gonçalo Garcia 2025-10-21 09:57:22 +00:00
parent 12c2a8e144
commit 691550a6f2
1 changed files with 9 additions and 3 deletions

View File

@ -430,11 +430,17 @@ if __name__ == "__main__":
secondary_gpg_key_name = None
if len(key_results) > 1:
secondary_gpg_key_id, secondary_gpg_key_name = key_results[1]
# Import RPM public keys (one or two)
pkg_creator.import_rpm_key(args.gpg_public_key)
if args.args.gpg_private_key_2:
print(f"signing RPM with secondary gpg_key: {secondary_gpg_key_id}")
pkg_creator.import_rpm_key(args.gpg_public_key_2)
else:
print(f"signing RPM with primary gpg_key: {primary_gpg_key_name}")
pkg_creator.import_rpm_key(args.gpg_public_key)
pkg_uploader = PkgUploader(args.account, args.bucket, args.id, args.secret)
print(f"signing with primary gpg_key: {primary_gpg_key_id} and secondary gpg_key: {secondary_gpg_key_id}")
print(f"signing deb with primary gpg_key: {primary_gpg_key_id} and secondary gpg_key: {secondary_gpg_key_id}")
create_deb_packaging(
pkg_creator,
pkg_uploader,