Skip to content

Commit

Permalink
chore: Update release config to use keystore for rubygems key
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma committed Oct 31, 2024
1 parent fd9e0c2 commit 72e1e4c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .kokoro/release.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,21 @@ 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/common-protos-ruby/*/pkg/*.gem"
strip_prefix: "github"
}
}
define_artifacts {
regex: "github/common-protos-ruby/*/pkg/*.gem"
strip_prefix: "github"
}
}
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 72e1e4c

Please sign in to comment.