Skip to content

Commit

Permalink
chore: temporary tests for keystore (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
dazuma authored Nov 12, 2024
1 parent 8eef189 commit 46ec3b0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toys/release/perform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,16 @@ def load_env

kokoro_keystore_dir = ENV["KOKORO_KEYSTORE_DIR"]
if kokoro_keystore_dir
logger.info "KOKORO_KEYSTORE_DIR = #{kokoro_keystore_dir}"
logger.info "target: #{File.readlink kokoro_keystore_dir}" if File.symlink? kokoro_keystore_dir
logger.info capture "ls #{kokoro_keystore_dir}/"
rubygems_api_token_path = "#{kokoro_keystore_dir}/73713_rubygems-publish-key"
if File.file? rubygems_api_token_path
ENV["RUBYGEMS_API_TOKEN"] ||= File.read rubygems_api_token_path
logger.info "Read Rubygems key from Keystore"
end
else
logger.warn "Did not find KOKORO_KEYSTORE_DIR"
end

logger.info "Finished loading environment"
Expand Down

0 comments on commit 46ec3b0

Please sign in to comment.