Skip to content

Commit 08aff7d

Browse files
committed
chore: Update release config to use keystore for rubygems key
1 parent f004e54 commit 08aff7d

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

.kokoro/release.cfg

+15-4
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,22 @@ env_vars: {
3232
value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googlecloudplatform-installation,releasetool-publish-reporter-pem,docuploader_service_account"
3333
}
3434

35+
# Pick up Rubygems key from internal keystore
36+
before_action {
37+
fetch_keystore {
38+
keystore_resource {
39+
keystore_config_id: 73713
40+
keyname: "rubygems-publish-key"
41+
backend: "blade:keystore-fastconfigpush"
42+
}
43+
}
44+
}
45+
3546
# Store the packages uploaded to rubygems.org, which
3647
# we can later use to generate SBOMs and attestations.
3748
action {
38-
define_artifacts {
39-
regex: "github/functions-framework-ruby/pkg/*.gem"
40-
strip_prefix: "github"
41-
}
49+
define_artifacts {
50+
regex: "github/functions-framework-ruby/pkg/*.gem"
51+
strip_prefix: "github"
52+
}
4253
}

.trampolinerc

+7-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,13 @@ required_envvars+=(
1818

1919
# Add env vars which are passed down into the container here.
2020
pass_down_envvars+=(
21-
"AUTORELEASE_PR" "RELEASE_DRY_RUN" "RELEASE_PACKAGE" "KOKORO_GIT_COMMIT" "RUBY_VERSIONS" "EXTRA_CI_ARGS"
21+
"AUTORELEASE_PR"
22+
"EXTRA_CI_ARGS"
23+
"KOKORO_GIT_COMMIT"
24+
"KOKORO_KEYSTORE_DIR"
25+
"RELEASE_DRY_RUN"
26+
"RELEASE_PACKAGE"
27+
"RUBY_VERSIONS"
2228
)
2329

2430
# Prevent unintentional override on the default image.

0 commit comments

Comments
 (0)