Skip to content

Commit

Permalink
chore: Update release config to use keystore for rubygems key (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Oct 31, 2024
1 parent 03b0541 commit 7ecb7b5
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
19 changes: 15 additions & 4 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-style/pkg/*.gem"
strip_prefix: "github"
}
define_artifacts {
regex: "github/ruby-style/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 7ecb7b5

Please sign in to comment.