Skip to content

Commit a819dfc

Browse files
authored
Merge branch 'main' into toys-gen-pkill
2 parents 1dc46dc + 825f329 commit a819dfc

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

.kokoro/release-generators.cfg

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
3+
# Build logs will be here
4+
action {
5+
define_artifacts {
6+
regex: "**/*sponge_log.xml"
7+
}
8+
}
9+
10+
# Use the trampoline script to run in docker.
11+
build_file: "gapic-generator-ruby/.kokoro/trampoline_v2.sh"
12+
13+
# Configure the docker image for kokoro-trampoline.
14+
env_vars: {
15+
key: "TRAMPOLINE_IMAGE"
16+
value: "us-central1-docker.pkg.dev/cloud-sdk-release-custom-pool/release-images/ruby-multi"
17+
}
18+
19+
env_vars: {
20+
key: "TRAMPOLINE_BUILD_FILE"
21+
value: ".kokoro/release-generators.sh"
22+
}
23+
24+
env_vars: {
25+
key: "SECRET_MANAGER_PROJECT_ID"
26+
value: "cloud-sdk-release-custom-pool"
27+
}
28+
29+
env_vars: {
30+
key: "SECRET_MANAGER_KEYS"
31+
value: ""
32+
}
33+
34+
# Pick up Rubygems key from internal keystore
35+
before_action {
36+
fetch_keystore {
37+
keystore_resource {
38+
keystore_config_id: 73713
39+
keyname: "rubygems-publish-key"
40+
backend: "blade:keystore-fastconfigpush"
41+
}
42+
}
43+
}
44+
45+
# Store the packages uploaded to rubygems.org, which
46+
# we can later use to generate SBOMs and attestations.
47+
action {
48+
define_artifacts {
49+
regex: "github/gapic-generator-ruby/*/pkg/*.gem"
50+
strip_prefix: "github"
51+
}
52+
}

.kokoro/release-generators.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/bash
2+
3+
set -eo pipefail
4+
5+
# Install gems in the user directory because the default install directory
6+
# is in a read-only location.
7+
export GEM_HOME=$HOME/.gem
8+
export PATH=$GEM_HOME/bin:$PATH
9+
10+
gem install --no-document toys
11+
git fetch --tags
12+
git switch gapic-generator/v$GEM_VERSION
13+
toys release perform -v --all=gapic-generator < /dev/null

.kokoro/trampoline_v2.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)