From be2b37763d655f0f7c113f923c33e07b3ccedf96 Mon Sep 17 00:00:00 2001 From: "sebastien.heurtematte" Date: Mon, 10 Jun 2024 10:09:18 +0200 Subject: [PATCH] feat: complete the OSSRH process with github org secrets Signed-off-by: sebastien.heurtematte --- ossrh/setup_ossrh.sh | 42 +++++++++++++++++++++++++++++++++++------- 1 file changed, 35 insertions(+), 7 deletions(-) diff --git a/ossrh/setup_ossrh.sh b/ossrh/setup_ossrh.sh index bf8a764..5101082 100755 --- a/ossrh/setup_ossrh.sh +++ b/ossrh/setup_ossrh.sh @@ -105,6 +105,10 @@ EOF * NOTE: Adjust SCM URL if needed * IMPORTANT: if it’s an ee4j project, mention that the permissions need to be set for https://jakarta.oss.sonatype.org not https://oss.sonatype.org + Issue comment template for HelpDesk issue after the OSSRH support has been reached: + ---------------------------------------------------------------------------------------------------------- + + The process for allowing deployments to OSSRH has been started. We are currently waiting sonatype support to be done. EOF read -rsp $'\nOnce you are done, Press any key to continue...\n' -n1 @@ -142,6 +146,11 @@ register_user_token() { * Go to user profil, and select in the dropdown 'User Token' panel: https://oss.sonatype.org/#profile;User%20Token * Click 'Access User Token' + + # Add OSSRH Token to Repository Organization (if project doesn't use Jenkins) + + * ORG_OSSRH_USERNAME: ${ossrh_token_username} + * ORG_OSSRH_PASSWORD: ${ossrh_token_password} EOF _open_url "https://oss.sonatype.org" @@ -153,6 +162,20 @@ create_gpg_credentials() { if _check_pw_does_not_exist "${PROJECT_NAME}" "gpg"; then "${CI_ADMIN_ROOT}/pass/add_creds_gpg.sh" "${PROJECT_NAME}" "${DISPLAY_NAME} Project" fi + + gpg_passphrase="$(passw "cbi" "bots/${PROJECT_NAME}/gpg/passphrase")" + gpg_secret="$(passw "cbi" "bots/${PROJECT_NAME}/gpg/secret-subkeys.asc")" + cat <