Skip to content

Commit

Permalink
Merge pull request #3008 from TracksApp/default_ruby
Browse files Browse the repository at this point in the history
Make 3.1 our default build
  • Loading branch information
ZeiP authored Jun 6, 2024
2 parents 86b0a7a + 05854c6 commit 085faab
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
matrix:
ruby: ["3.0", "3.1", "3.2", "3.3"]
db: [sqlite, mysql, postgres]
exclude:
- ruby: "3.2"
db: sqlite
- ruby: "3.2"
db: postgres

steps:
- uses: actions/checkout@v1
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.0
FROM ruby:3.1

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
Expand All @@ -13,7 +13,7 @@ RUN bundle install --jobs 4

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 apt-get update && apt-get install -y yarn netcat
RUN apt-get update && apt-get install -y yarn netcat-openbsd

RUN mkdir /app/log

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile-3.1 → Dockerfile-3.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.1
FROM ruby:3.0

# throw errors if Gemfile has been modified since Gemfile.lock
RUN bundle config --global frozen 1
Expand Down
2 changes: 1 addition & 1 deletion test-envs/docker-compose-3.0-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
web:
build:
context: ..
dockerfile: Dockerfile
dockerfile: Dockerfile-3.0
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
Expand Down
2 changes: 1 addition & 1 deletion test-envs/docker-compose-3.0-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
web:
build:
context: ..
dockerfile: Dockerfile
dockerfile: Dockerfile-3.0
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
Expand Down
2 changes: 1 addition & 1 deletion test-envs/docker-compose-3.0-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
web:
build:
context: ..
dockerfile: Dockerfile
dockerfile: Dockerfile-3.0
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
Expand Down
2 changes: 1 addition & 1 deletion test-envs/docker-compose-3.1-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
web:
build:
context: ..
dockerfile: Dockerfile-3.1
dockerfile: Dockerfile
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
Expand Down
2 changes: 1 addition & 1 deletion test-envs/docker-compose-3.1-postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
web:
build:
context: ..
dockerfile: Dockerfile-3.1
dockerfile: Dockerfile
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
Expand Down
2 changes: 1 addition & 1 deletion test-envs/docker-compose-3.1-sqlite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
web:
build:
context: ..
dockerfile: Dockerfile-3.1
dockerfile: Dockerfile
environment:
# These are set in script/ci-build, so we need to pass-thru them.
RAILS_ENV: $RAILS_ENV
Expand Down

0 comments on commit 085faab

Please sign in to comment.