RubyGems
Avrea caches gems from rubygems.org so that bundle install and gem fetch
resolve dependencies from colocated cache on repeat runs.
On Avrea runners
Section titled “On Avrea runners”Bundler is pre-configured with a mirror for rubygems.org:
bundle config --global mirror.https://rubygems.org https://avrea-host:8443/rubygemsYour workflow needs no changes:
jobs: build: runs-on: avrea-ubuntu-latest steps: - uses: actions/checkout@v6 - uses: ruby/setup-ruby@v1 with: ruby-version: '3.3' - run: bundle installManual setup
Section titled “Manual setup”Configure Bundler to mirror rubygems.org through the cache:
bundle config --global mirror.https://rubygems.org https://avrea-host:8443/rubygemsOr per-project, set the source in your Gemfile:
source "https://avrea-host:8443/rubygems/"
gem "rails"Replace the default rubygems.org source:
gem sources --remove https://rubygems.org/gem sources --add https://avrea-host:8443/rubygems/gem sources --update