Skip to content

Commit

Permalink
Upgrade all the rubies - use 3.3 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
tigris committed Apr 23, 2024
1 parent 5cd37e3 commit 987c119
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.7', '3.0', '3.1', '3.2']
ruby-version: ['2.7', '3.0', '3.1', '3.2', '3.3']

steps:
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
AllCops:
TargetRubyVersion: 3.0
TargetRubyVersion: 3.3

Gemspec/RequiredRubyVersion:
Enabled: false
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.1-alpine@sha256:499a310e8fab835ad47ab6251302aba1fd6ba91ebdfa22d621f495a5d0ded170 as build
FROM ruby:3.3-alpine@sha256:447495d87e72344ac35f14afd4bebd635eaafcaf3f147ebb72a15fa555b8584e as build

WORKDIR /app
COPY bin /app/bin
Expand All @@ -10,7 +10,7 @@ COPY LICENSE.md /app/
COPY stackup.gemspec /app/
RUN gem build stackup.gemspec

FROM ruby:3.1-alpine@sha256:499a310e8fab835ad47ab6251302aba1fd6ba91ebdfa22d621f495a5d0ded170
FROM ruby:3.3-alpine@sha256:447495d87e72344ac35f14afd4bebd635eaafcaf3f147ebb72a15fa555b8584e

MAINTAINER https://github.com/realestate-com-au/stackup

Expand Down
2 changes: 1 addition & 1 deletion auto/release-gem
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ git fetch origin
git diff origin/main --exit-code

echo "--- Releasing gem"
docker run --rm -itw /cwd -v "$PWD:/cwd" ruby:3.1-alpine auto/release-in-docker
docker run --rm -itw /cwd -v "$PWD:/cwd" ruby:3.3-alpine auto/release-in-docker
2 changes: 1 addition & 1 deletion auto/ruby-2.7
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -eu -o pipefail
cd $(dirname $0)/..

RUBY_IMAGE="ruby:2.7@sha256:3d9c2a2d305318710c9e5a4ee001e07e227f356a40e0b6003d8440835d430770" exec auto/ruby "${@}"
RUBY_IMAGE="ruby:2.7@sha256:2347de892e419c7160fc21dec721d5952736909f8c3fbb7f84cb4a07aaf9ce7d" exec auto/ruby "${@}"
2 changes: 1 addition & 1 deletion auto/ruby-3.0
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -eu -o pipefail
cd $(dirname $0)/..

RUBY_IMAGE="ruby:3.0@sha256:dfb439f51e6ba58810fed23e4c4582f3e3c24e6a972ec505de27217f5036c567" exec auto/ruby "${@}"
RUBY_IMAGE="ruby:3.0@sha256:3d4f1647953941c19b6d0176c0a3e1f373aa7b0553d1c8aba51789721151f953" exec auto/ruby "${@}"
2 changes: 1 addition & 1 deletion auto/ruby-3.1
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
set -eu -o pipefail
cd $(dirname $0)/..

RUBY_IMAGE="ruby:3.1@sha256:ffdb4e42cf4663e10c32d3ea91312b61df931b41439c16f7b88a7f6e70a65b6d" exec auto/ruby "${@}"
RUBY_IMAGE="ruby:3.1@sha256:8ebc619f459ec62a7d0763f910e50787cc7999de3c09632536b22aaf8725d3f1" exec auto/ruby "${@}"
6 changes: 6 additions & 0 deletions auto/ruby-3.2
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -eu -o pipefail
cd $(dirname $0)/..

RUBY_IMAGE="ruby:3.2@sha256:9ee6e94ab254ec61fd08472976a8d0a04d9745de76e9768ccd33f0b7d2fd1be9" exec auto/ruby "${@}"
6 changes: 6 additions & 0 deletions auto/ruby-3.3
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash

set -eu -o pipefail
cd $(dirname $0)/..

RUBY_IMAGE="ruby:3.3@sha256:8eb6fb9ea8d522506913b420fbaecace30c15f545fb86a8cf7406179e7efa3fd" exec auto/ruby "${@}"
6 changes: 6 additions & 0 deletions auto/test
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
set -eu -o pipefail
cd $(dirname $0)/..

echo "+++ Running specs for ruby 3.3"
./auto/ruby-3.3 rspec

echo "+++ Running specs for ruby 3.2"
./auto/ruby-3.2 rspec

echo "+++ Running specs for ruby 3.1"
./auto/ruby-3.1 rspec

Expand Down

0 comments on commit 987c119

Please sign in to comment.