Merge pull request #3008 from TracksApp/default_ruby

Make 3.1 our default build
This commit is contained in:
Jyri-Petteri Paloposki 2024-06-06 11:27:34 +03:00 committed by GitHub
commit 085faab554
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 14 additions and 9 deletions

View file

@ -8,6 +8,11 @@ jobs:
matrix: matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"] ruby: ["3.0", "3.1", "3.2", "3.3"]
db: [sqlite, mysql, postgres] db: [sqlite, mysql, postgres]
exclude:
- ruby: "3.2"
db: sqlite
- ruby: "3.2"
db: postgres
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1

View file

@ -1,4 +1,4 @@
FROM ruby:3.0 FROM ruby:3.1
# throw errors if Gemfile has been modified since Gemfile.lock # throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1 RUN bundle config --global frozen 1
@ -13,7 +13,7 @@ RUN bundle install --jobs 4
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update && apt-get install -y yarn netcat RUN apt-get update && apt-get install -y yarn netcat-openbsd
RUN mkdir /app/log RUN mkdir /app/log

View file

@ -1,4 +1,4 @@
FROM ruby:3.1 FROM ruby:3.0
# throw errors if Gemfile has been modified since Gemfile.lock # throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1 RUN bundle config --global frozen 1

View file

@ -10,7 +10,7 @@ services:
web: web:
build: build:
context: .. context: ..
dockerfile: Dockerfile dockerfile: Dockerfile-3.0
environment: environment:
# These are set in script/ci-build, so we need to pass-thru them. # These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV RAILS_ENV: $RAILS_ENV

View file

@ -10,7 +10,7 @@ services:
web: web:
build: build:
context: .. context: ..
dockerfile: Dockerfile dockerfile: Dockerfile-3.0
environment: environment:
# These are set in script/ci-build, so we need to pass-thru them. # These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV RAILS_ENV: $RAILS_ENV

View file

@ -3,7 +3,7 @@ services:
web: web:
build: build:
context: .. context: ..
dockerfile: Dockerfile dockerfile: Dockerfile-3.0
environment: environment:
# These are set in script/ci-build, so we need to pass-thru them. # These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV RAILS_ENV: $RAILS_ENV

View file

@ -10,7 +10,7 @@ services:
web: web:
build: build:
context: .. context: ..
dockerfile: Dockerfile-3.1 dockerfile: Dockerfile
environment: environment:
# These are set in script/ci-build, so we need to pass-thru them. # These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV RAILS_ENV: $RAILS_ENV

View file

@ -10,7 +10,7 @@ services:
web: web:
build: build:
context: .. context: ..
dockerfile: Dockerfile-3.1 dockerfile: Dockerfile
environment: environment:
# These are set in script/ci-build, so we need to pass-thru them. # These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV RAILS_ENV: $RAILS_ENV

View file

@ -3,7 +3,7 @@ services:
web: web:
build: build:
context: .. context: ..
dockerfile: Dockerfile-3.1 dockerfile: Dockerfile
environment: environment:
# These are set in script/ci-build, so we need to pass-thru them. # These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV RAILS_ENV: $RAILS_ENV