Skip to content

Commit

Permalink
Update to ruby v3.2.2
Browse files Browse the repository at this point in the history
I've also updated the docker file and added a workflow to check that it builds
  • Loading branch information
tim-s-ccs committed Oct 17, 2023
1 parent 4db1ded commit 3d65de3
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 7 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
branches-ignore:
- develop
- staging
- main
pull_request:

jobs:
build-image:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag pmpidam:$(date +%s)
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.1
3.2.2
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dist: bionic
language: ruby
rvm:
— 3.2.1
— 3.2.2
deploy:
edge: true
provider: cloudfoundry
Expand Down
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM ruby:3.2.1
FROM ruby:3.2.2

ARG NODE_MAJOR=16

WORKDIR /app

RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
RUN apt-get update && \
apt-get install -y ca-certificates curl gnupg && \
mkdir -p /etc/apt/keyrings && \
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \
apt-get update && \
apt-get install -y nodejs && \
apt-get install -y nodejs npm && \
npm install -g yarn@1.22.19

COPY Gemfile Gemfile.lock ./
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby '3.2.1'
ruby '3.2.2'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 7.0.8'
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ DEPENDENCIES
webpacker (~> 5.4, >= 5.4.4)

RUBY VERSION
ruby 3.2.1p31
ruby 3.2.2p53

BUNDLED WITH
2.4.6

0 comments on commit 3d65de3

Please sign in to comment.