and version to use, see the syntax in the README. Reads from .ruby-version, .tool-versions or mise.toml if unset. default: 'default' see. https:/ /github.com/ruby/setup-ruby/blob/master/action.yml
the Ruby version in .ruby-version ARG RUBY_VERSION=3.4.2 FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base (定義が重複してしまうものの)RUBY_VERSIONのデフォルト値として、.ruby-versionと同じバージョンを指定しておくと、いちいちRUBY_VERSIONを指定しなくて楽。
from a version file (i.e. .ruby-version), you can use the file option instead. ruby file: ".ruby-version" ref. Bundler: Ruby Directive see also. GemfileでのRubyバージョン指定を.ruby-versionから読む - koicの日記