Exchange a Buildkite OIDC token with Rubygems as a trusted provider, via an OIDC API Key Role, to securely push Rubygems from your Buildkite pipelines.
steps:
- label: ":rubygems: Build and push to Rubygems"
plugins:
- rubygems-oidc:
role: rg_oidc_akr_...
command: |
gem build "*.gem"
gem push "*.gem"
Inspired by https://github.com/rubygems/configure-rubygems-credentials