Skip to content

Commit

Permalink
chore: Update release config to use keystore for rubygems key and pus…
Browse files Browse the repository at this point in the history
…h docs to cloud-rad (#75)
  • Loading branch information
dazuma authored Oct 30, 2024
1 parent e94e072 commit 8b29576
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
21 changes: 16 additions & 5 deletions .kokoro/release.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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/ruby-cloud-env/pkg/*.gem"
strip_prefix: "github"
}
}
define_artifacts {
regex: "github/ruby-cloud-env/pkg/*.gem"
strip_prefix: "github"
}
}
2 changes: 1 addition & 1 deletion .kokoro/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 7 additions & 1 deletion .trampolinerc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8b29576

Please sign in to comment.