Ruby update
/ test (push) Waiting to run Details

This commit is contained in:
Trevor Vallender 2024-05-15 20:44:36 +01:00
parent c12bf6caf6
commit 915ba8ec23
5 changed files with 8 additions and 9 deletions

View File

@ -1 +1 @@
3.2.2 3.3.1

View File

@ -1,4 +1,4 @@
ARG RUBY_VERSION=3.2.2 ARG RUBY_VERSION=3.3.1
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base
# Rails app lives here # Rails app lives here
@ -17,15 +17,14 @@ FROM base as build
RUN apt-get update -qq && \ RUN apt-get update -qq && \
apt-get install --no-install-recommends -y build-essential curl git libpq-dev libvips pkg-config apt-get install --no-install-recommends -y build-essential curl git libpq-dev libvips pkg-config
# Copy application code
COPY . .
# Install application gems # Install application gems
COPY Gemfile Gemfile.lock ./
RUN bundle install && \ RUN bundle install && \
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
bundle exec bootsnap precompile --gemfile bundle exec bootsnap precompile --gemfile
# Copy application code
COPY . .
# Precompile bootsnap code for faster boot times # Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/ RUN bundle exec bootsnap precompile app/ lib/

View File

@ -1,7 +1,7 @@
source "https://rubygems.org" source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" } git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "3.2.2" ruby file: "./.ruby-version"
gem "rails", "~> 7.1" gem "rails", "~> 7.1"
gem "sprockets-rails" gem "sprockets-rails"

View File

@ -288,7 +288,7 @@ DEPENDENCIES
web-console web-console
RUBY VERSION RUBY VERSION
ruby 3.2.2p53 ruby 3.3.1p55
BUNDLED WITH BUNDLED WITH
2.4.19 2.4.19

View File

@ -41,7 +41,7 @@ ssh:
builder: builder:
args: args:
APPLICATION_HOST: tsvallender.co.uk APPLICATION_HOST: tsvallender.co.uk
RUBY_VERSION: 3.2.2 RUBY_VERSION: 3.3.1
remote: remote:
arch: arm64 arch: arm64
host: ssh://kamal@tsvallender.co.uk host: ssh://kamal@tsvallender.co.uk