Make 3.1 our default build

This commit is contained in:
Jyri-Petteri Paloposki 2024-06-06 10:46:36 +03:00
parent 86b0a7aa95
commit 80c3b22e04
9 changed files with 13 additions and 8 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

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