Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
ruby-version: 3.4.8
- run: rake spec
4 changes: 2 additions & 2 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
ruby-version: 3.4.8
- run: rake spec

build:
Expand All @@ -28,7 +28,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
ruby-version: 3.4.8
- run: rake version
- run: rake build
- uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
ruby-version: 3.4.8
- run: rake version
- run: rake build
- uses: actions/upload-artifact@v4
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: 3.2.2
ruby-version: 3.4.8
- uses: actions/download-artifact@v4
with:
name: pkg
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.6
3.4.8
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ruby 2.7.6
ruby 3.4.8
26 changes: 14 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
FROM ruby:3.2.2-alpine3.18
FROM ruby:3.4.8-alpine3.23

ARG TERRAFYING_VERSION=0.0.0
ENV TERRAFORM_VERSION=1.2.8

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

RUN wget -O terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip
RUN unzip terraform.zip
RUN install -m 755 terraform /usr/bin/terraform
RUN install -d ${HOME}/.terraform.d/plugins/linux_amd64
RUN rm terraform terraform.zip

COPY pkg /tmp

RUN apk add --update --no-cache --virtual .terra-builddeps build-base ruby-dev \
&& apk add --update --no-cache --virtual .terra-rundeps git bash \
&& gem install /tmp/terrafying-components-${TERRAFYING_VERSION}.gem \
&& install -d /terra \
&& apk del .terra-builddeps \
&& rm -rf /var/cache/apk/*
RUN apk add --update --no-cache --virtual .terra-builddeps build-base ruby-dev
RUN apk add --update --no-cache --virtual .terra-rundeps git bash
RUN gem install /tmp/terrafying-components-${TERRAFYING_VERSION}.gem
RUN install -d /terra
RUN apk del .terra-builddeps
RUN rm -rf /var/cache/apk/*
Comment thread
mnecchi marked this conversation as resolved.
Outdated

WORKDIR /terra

Expand Down
4 changes: 2 additions & 2 deletions terrafying-components.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3.7'
spec.add_development_dependency 'rspec-mocks', '~> 3.7'

spec.add_runtime_dependency 'terrafying', '>= 1.8.0'
spec.add_runtime_dependency 'xxhash', '~> 0.4.0'
spec.add_runtime_dependency 'terrafying', '>= 1.8.7'
spec.add_runtime_dependency 'xxhash', '~> 0.7.0'
end