From 3388e75aadfae9e4799d954acd18d65bc44c5f85 Mon Sep 17 00:00:00 2001 From: Daniel Azuma Date: Wed, 30 Oct 2024 14:00:05 -0700 Subject: [PATCH] chore: Update release config to use keystore for rubygems key and push docs to cloud-rad (#240) --- .kokoro/release.cfg | 21 ++++++++++++++++----- .kokoro/release.sh | 2 +- .trampolinerc | 8 +++++++- 3 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.kokoro/release.cfg b/.kokoro/release.cfg index 3734720..0de2a20 100644 --- a/.kokoro/release.cfg +++ b/.kokoro/release.cfg @@ -32,11 +32,22 @@ env_vars: { value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,docuploader_service_account" } +# Pick up Rubygems key from internal keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 73713 + keyname: "rubygems-publish-key" + backend: "blade:keystore-fastconfigpush" + } + } +} + # Store the packages uploaded to rubygems.org, which # we can later use to generate SBOMs and attestations. action { - define_artifacts { - regex: "github/signet/pkg/*.gem" - strip_prefix: "github" - } -} \ No newline at end of file + define_artifacts { + regex: "github/signet/pkg/*.gem" + strip_prefix: "github" + } +} diff --git a/.kokoro/release.sh b/.kokoro/release.sh index 4adfa23..34157c8 100755 --- a/.kokoro/release.sh +++ b/.kokoro/release.sh @@ -10,4 +10,4 @@ export PATH=$GEM_HOME/bin:$PATH gem install --no-document toys toys release install-python-tools -v python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script -toys release perform -v --enable-docs < /dev/null +toys release perform -v --force-republish --enable-docs --enable-rad < /dev/null diff --git a/.trampolinerc b/.trampolinerc index d4c5feb..677fcd4 100644 --- a/.trampolinerc +++ b/.trampolinerc @@ -18,7 +18,13 @@ required_envvars+=( # Add env vars which are passed down into the container here. pass_down_envvars+=( - "AUTORELEASE_PR" "RELEASE_DRY_RUN" "RELEASE_PACKAGE" "KOKORO_GIT_COMMIT" "RUBY_VERSIONS" "EXTRA_CI_ARGS" + "AUTORELEASE_PR" + "EXTRA_CI_ARGS" + "KOKORO_GIT_COMMIT" + "KOKORO_KEYSTORE_DIR" + "RELEASE_DRY_RUN" + "RELEASE_PACKAGE" + "RUBY_VERSIONS" ) # Prevent unintentional override on the default image.