From 691550a6f2a0e8fff4957759246e49c24cdb5a89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Garcia?= Date: Tue, 21 Oct 2025 09:57:22 +0000 Subject: [PATCH] TUN-9941: Use new GPG key for RPM builds * TUN-9941: Use new GPG key for RPM builds Closes TUN-9941 --- release_pkgs.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/release_pkgs.py b/release_pkgs.py index 6214815a..ae3d59ff 100644 --- a/release_pkgs.py +++ b/release_pkgs.py @@ -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,