Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update release config to use keystore for rubygems key and push docs to cloud-rad #75

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 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-cloud-env/pkg/*.gem"
strip_prefix: "github"
}
}
define_artifacts {
regex: "github/ruby-cloud-env/pkg/*.gem"
strip_prefix: "github"
}
}
2 changes: 1 addition & 1 deletion .kokoro/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export PATH=$GEM_HOME/bin:$PATH
gem install --no-document toys
toys release install-python-tools -v
python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
toys release perform -v --enable-docs < /dev/null
toys release perform -v --force-republish --enable-docs --enable-rad < /dev/null
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