Skip to content

RubyGems

Avrea caches gems from rubygems.org so that bundle install and gem fetch resolve dependencies from colocated cache on repeat runs.

Bundler is pre-configured with a mirror for rubygems.org:

Terminal window
bundle config --global mirror.https://rubygems.org https://avrea-host:8443/rubygems

Your workflow needs no changes:

workflow.yml
jobs:
build:
runs-on: avrea-ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
- run: bundle install

Configure Bundler to mirror rubygems.org through the cache:

Terminal window
bundle config --global mirror.https://rubygems.org https://avrea-host:8443/rubygems

Or per-project, set the source in your Gemfile:

Gemfile
source "https://avrea-host:8443/rubygems/"
gem "rails"