Using this workflow in GitHub actions no longer works as intended. The Dockerfile performs a gem install bundler without specifying a version of it. Bundler 2.5.0 was released over the weekend and dropped support for Ruby 2.7.
To reproduce:
git clone git@github.com:lewagon/wait-on-check-action.git
cd wait-on-check-action/
docker build .
Fails with:
=> ERROR [base 5/9] RUN gem install bundler
------
> [base 5/9] RUN gem install bundler:
47.06 ERROR: Error installing bundler:
47.06 The last version of bundler (>= 0) to support your Ruby & RubyGems was 2.4.22. Try installing it with `gem install bundler -v 2.4.22`
47.06 bundler requires Ruby version >= 3.0.0. The current ruby version is 2.7.2.137.
------
Dockerfile:7
--------------------
5 | COPY Gemfile Gemfile
6 | COPY Gemfile.lock Gemfile.lock
7 | >>> RUN gem install bundler
8 | RUN bundle config set with 'development test'
9 | RUN bundle install --jobs 20 --retry 5
--------------------
Using this workflow in GitHub actions no longer works as intended. The Dockerfile performs a
gem install bundler
without specifying a version of it. Bundler2.5.0
was released over the weekend and dropped support for Ruby 2.7.To reproduce:
Fails with:
To fix:
Use this command instead in the Dockerfile: