Gitlab CIで今日Runnerが LoadError: libssl.so.1.1: cannot open shared object file: No such file or directoryというエラーが出てCIが動かなくなりました。
.gitlab-ci.ymlは以下の通りです。
image: ruby:3.2.2 stages: - test variables: POSTGRES_DB: road_manager_api_test POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_HOST_AUTH_METHOD: trust BUNDLE_CACHE: "vendor/bundle" RAILS_ENV: test DB_HOST: "postgres" DB_USERNAME: "postgres" DB_PASSWORD: "password" TZ: "Asia/Tokyo" CI: "true" cache: untracked: true key: "$CI_BUILD_NAME" paths: - vendor/bundle services: - name: postgis/postgis:15-3.3 alias: postgres before_script: - echo "$MASTER_KEY" > config/master.key - gem install bundler - bundle install --jobs $(nproc) --path vendor/bundle - bundle exec rake db:create db:schema:load - bundle exec rake db:migrate - bundle exec rake db:seed minitest: stage: test script: - bin/rails test rubocop: stage: test script: - bundle exec rubocop allow_failure: true
Dockerイメージを確認したところ、ちょうどruby:3.2.2がbullseyeからbookwormに変更されていました。
と言うことはcacheがbullseye向けになっていたというのが原因っぽいということで、マニュアルでcacheを削除したところ、正常に動作するようになりました。
というわけで、Dockerイメージは定期的に確認しておきましょう。
あと、実家のDebianもバージョンアップしないと...