Skip to content

Commit 6a0bc37

Browse files
committed
upgrade ruby to 3.4.8
1 parent b87924f commit 6a0bc37

File tree

6 files changed

+21
-19
lines changed

6 files changed

+21
-19
lines changed

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ jobs:
1414
- uses: ruby/setup-ruby@v1
1515
with:
1616
bundler-cache: true
17-
ruby-version: 3.2.2
17+
ruby-version: 3.4.8
1818
- run: rake spec

.github/workflows/push.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: ruby/setup-ruby@v1
1818
with:
1919
bundler-cache: true
20-
ruby-version: 3.2.2
20+
ruby-version: 3.4.8
2121
- run: rake spec
2222

2323
build:
@@ -28,7 +28,7 @@ jobs:
2828
- uses: ruby/setup-ruby@v1
2929
with:
3030
bundler-cache: true
31-
ruby-version: 3.2.2
31+
ruby-version: 3.4.8
3232
- run: rake version
3333
- run: rake build
3434
- uses: actions/upload-artifact@v4

.github/workflows/tag.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: ruby/setup-ruby@v1
2020
with:
2121
bundler-cache: true
22-
ruby-version: 3.2.2
22+
ruby-version: 3.4.8
2323
- run: rake version
2424
- run: rake build
2525
- uses: actions/upload-artifact@v4
@@ -40,7 +40,7 @@ jobs:
4040
- uses: ruby/setup-ruby@v1
4141
with:
4242
bundler-cache: true
43-
ruby-version: 3.2.2
43+
ruby-version: 3.4.8
4444
- uses: actions/download-artifact@v4
4545
with:
4646
name: pkg

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
3.4.8

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ruby 2.7.6
1+
ruby 3.4.8

Dockerfile

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
FROM ruby:3.2.2-alpine3.18
1+
FROM ruby:3.4.8-alpine3.23
22

33
ARG TERRAFYING_VERSION=0.0.0
44
ENV TERRAFORM_VERSION=1.2.8
55

6-
RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
7-
&& unzip terraform.zip \
8-
&& install -m 755 terraform /usr/bin/terraform \
9-
&& install -d ${HOME}/.terraform.d/plugins/linux_amd64 \
10-
&& rm terraform terraform.zip
6+
RUN apk add --update --no-cache wget
7+
8+
RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
9+
RUN unzip terraform.zip
10+
RUN install -m 755 terraform /usr/bin/terraform
11+
RUN install -d ${HOME}/.terraform.d/plugins/linux_amd64
12+
RUN rm terraform terraform.zip
1113

1214
COPY pkg /tmp
1315

14-
RUN apk add --update --no-cache --virtual .terra-builddeps build-base ruby-dev \
15-
&& apk add --update --no-cache --virtual .terra-rundeps git bash \
16-
&& gem install /tmp/terrafying-components-${TERRAFYING_VERSION}.gem \
17-
&& install -d /terra \
18-
&& apk del .terra-builddeps \
19-
&& rm -rf /var/cache/apk/*
16+
RUN apk add --update --no-cache --virtual .terra-builddeps build-base ruby-dev
17+
RUN apk add --update --no-cache --virtual .terra-rundeps git bash
18+
RUN gem install /tmp/terrafying-components-${TERRAFYING_VERSION}.gem
19+
RUN install -d /terra
20+
RUN apk del .terra-builddeps
21+
RUN rm -rf /var/cache/apk/*
2022

2123
WORKDIR /terra
2224

0 commit comments

Comments
 (0)