Skip to content

Commit

Permalink
change ruby version
Browse files Browse the repository at this point in the history
  • Loading branch information
tsusdere committed Jan 3, 2024
1 parent d7615e1 commit a1e407c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-gem.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.8'
ruby-version: "3.2"
- name: Build gem
run: |
gem build github-pages.gemspec
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
@@ -1 +1 @@
2.7.8
3.2
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,4 +1,4 @@
ARG RUBY_VERSION=2.7.8
ARG RUBY_VERSION=3.2
FROM ruby:$RUBY_VERSION

RUN apt-get update \
Expand All @@ -9,7 +9,7 @@ RUN apt-get update \
nodejs

# final version for rubygems-update to supoprt ruby 2.7, consider removing this after upgraded to ruby 3.0
RUN gem update --system 3.4.22
RUN gem update --system

COPY .git /src/gh/pages-gem/.git
COPY Gemfile* /src/gh/pages-gem/
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.alpine
@@ -1,4 +1,4 @@
FROM ruby:2.7.8-alpine
FROM ruby:3.2-alpine

RUN apk update && apk add --no-cache \
git
Expand Down
2 changes: 1 addition & 1 deletion script/cibuild-docker
Expand Up @@ -3,7 +3,7 @@
set -ex

# Set the ruby version in the Action definition matrix.
: "${RUBY_VERSION:="2.7.8"}"
: "${RUBY_VERSION:="3.2"}"

docker build --build-arg "RUBY_VERSION=$RUBY_VERSION" -t github-pages .
docker run --rm --workdir /src/gh/pages-gem github-pages script/cibuild

0 comments on commit a1e407c

Please sign in to comment.