Skip to content

Commit a5b6588

Browse files
authored
chore: Update release config to use keystore for rubygems key (#20477)
1 parent 842bf9b commit a5b6588

File tree

3 files changed

+41
-11
lines changed

3 files changed

+41
-11
lines changed

.kokoro/release-generated.cfg

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ env_vars: {
55
value: ".kokoro/release-generated.sh"
66
}
77

8+
# Pick up Rubygems key from internal keystore
9+
before_action {
10+
fetch_keystore {
11+
keystore_resource {
12+
keystore_config_id: 73713
13+
keyname: "rubygems-publish-key"
14+
backend: "blade:keystore-fastconfigpush"
15+
}
16+
}
17+
}
18+
819
# Store the packages uploaded to rubygems.org, which
920
# we can later use to generate SBOMs and attestations.
1021
action {
11-
define_artifacts {
12-
regex: "github/google-api-ruby-client/generated/*/pkg/*.gem"
13-
strip_prefix: "github"
14-
}
15-
}
22+
define_artifacts {
23+
regex: "github/google-api-ruby-client/generated/*/pkg/*.gem"
24+
strip_prefix: "github"
25+
}
26+
}

.kokoro/release.cfg

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,22 @@ env_vars: {
55
value: ".kokoro/release.sh"
66
}
77

8+
# Pick up Rubygems key from internal keystore
9+
before_action {
10+
fetch_keystore {
11+
keystore_resource {
12+
keystore_config_id: 73713
13+
keyname: "rubygems-publish-key"
14+
backend: "blade:keystore-fastconfigpush"
15+
}
16+
}
17+
}
18+
819
# Store the packages uploaded to rubygems.org, which
920
# we can later use to generate SBOMs and attestations.
1021
action {
11-
define_artifacts {
12-
regex: "github/google-api-ruby-client/*/pkg/*.gem"
13-
strip_prefix: "github"
14-
}
15-
}
22+
define_artifacts {
23+
regex: "github/google-api-ruby-client/*/pkg/*.gem"
24+
strip_prefix: "github"
25+
}
26+
}

.trampolinerc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ 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" "PACKAGE" "RELEASE_PACKAGE" "KOKORO_GIT_COMMIT" "RUBY_VERSIONS" "EXTRA_CI_ARGS" "GEMS_LIST"
21+
"AUTORELEASE_PR"
22+
"EXTRA_CI_ARGS"
23+
"GEMS_LIST"
24+
"KOKORO_GIT_COMMIT"
25+
"KOKORO_KEYSTORE_DIR"
26+
"PACKAGE"
27+
"RELEASE_DRY_RUN"
28+
"RELEASE_PACKAGE"
29+
"RUBY_VERSIONS"
2230
)
2331

2432
# Prevent unintentional override on the default image.

0 commit comments

Comments
 (0)