Skip to content

Commit a73f59a

Browse files
authored
Merge branch 'staging' into renovate/major-ruby-on-rails-packages
2 parents 91de0f0 + 0088261 commit a73f59a

File tree

13 files changed

+153
-116
lines changed

13 files changed

+153
-116
lines changed

.github/workflows/continuous-delivery.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ jobs:
135135
with:
136136
sha: ${{ needs.merge.outputs.sha }}
137137
secrets:
138-
rails_master_key: ${{ secrets.RAILS_MASTER_KEY }}
139138
sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }}
140139

141140
deploy:
@@ -188,7 +187,7 @@ jobs:
188187
docker-compose up -d
189188
190189
- name: Finalize Sentry release
191-
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
190+
uses: getsentry/action-release@1841d945bad68068f92f796114d0fa534129764d # v1.8.0
192191
env:
193192
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
194193
SENTRY_ORG: ${{ vars.SENTRY_ORG_NAME }}

.github/workflows/continuous-integration.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,28 @@ jobs:
6868
6969
- name: Download actionlint
7070
run: |
71-
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.6.26
71+
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) 1.7.6
7272
7373
- name: Load test image
7474
uses: guidojw/actions/load-docker-image@3ad963828827110a6b716a011f242bf01fdf1db4 # v1.4.7
7575
with:
7676
name: app
7777

7878
- name: Lint
79-
env:
80-
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
8179
run: |
8280
EXIT_STATUS=0
83-
./actionlint -ignore 'SC2153:' -ignore 'property "sha" is not defined in object type {}' || \
84-
EXIT_STATUS=$?
85-
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST=localhost -e \
86-
RAILS_MASTER_KEY --network=host app bin/ci.sh lint || EXIT_STATUS=$?
81+
./actionlint \
82+
-ignore 'property "gh_app_private_key" is not defined' \
83+
-ignore 'SC2153:' \
84+
-ignore 'property "sha" is not defined in object type {}' || \
85+
EXIT_STATUS=$?
86+
docker run \
87+
-e POSTGRES_USER=postgres \
88+
-e POSTGRES_PASSWORD=postgres \
89+
-e POSTGRES_HOST=localhost \
90+
--network=host \
91+
app bin/ci.sh lint || \
92+
EXIT_STATUS=$?
8793
exit $EXIT_STATUS
8894
8995
test:
@@ -123,8 +129,15 @@ jobs:
123129
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
124130
run: |
125131
mkdir coverage
126-
docker run -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgres -e POSTGRES_HOST=localhost -e \
127-
RAILS_MASTER_KEY --network=host -v "$(pwd)"'/coverage:/app/coverage' app bin/ci.sh spec
132+
docker run \
133+
-e RAILS_MASTER_KEY \
134+
-e POSTGRES_USER=postgres \
135+
-e POSTGRES_PASSWORD=postgres \
136+
-e POSTGRES_HOST=localhost \
137+
--network=host \
138+
-v "$(pwd)"'/coverage:/app/coverage' \
139+
app bin/ci.sh spec
140+
128141
129142
- name: Upload coverage report to Codecov
130143
if: ${{ !cancelled() }}

.github/workflows/publish-image.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ on:
1010
required: false
1111
type: string
1212
secrets:
13-
rails_master_key:
14-
description: The Rails master key
15-
required: true
1613
sentry_auth_token:
1714
description: The Sentry integration's token
1815
required: true
@@ -68,13 +65,11 @@ jobs:
6865

6966
- name: Build and push image
7067
id: build_push_image
71-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
68+
uses: docker/build-push-action@b32b51a8eda65d6793cd0494a773d4f6bcef32dc # v6.11.0
7269
with:
7370
push: true
7471
context: .
7572
build-args: ${{ needs.metadata.outputs.build_args }}
76-
secrets: |
77-
rails_master_key=${{ secrets.RAILS_MASTER_KEY }}
7873
cache-from: type=gha,scope=main
7974
cache-to: type=gha,scope=main
8075
tags: |
@@ -90,7 +85,7 @@ jobs:
9085
9186
- name: Create Sentry release
9287
if: ${{ !(github.event_name == 'workflow_dispatch' && github.workflow == 'Publish Image') }}
93-
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
88+
uses: getsentry/action-release@1841d945bad68068f92f796114d0fa534129764d # v1.8.0
9489
env:
9590
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
9691
SENTRY_ORG: ${{ vars.SENTRY_ORG_NAME }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.18.1
1+
18.20.5

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require:
44
- rubocop-performance
55

66
AllCops:
7-
TargetRailsVersion: 7.0
7+
TargetRailsVersion: 7.1
88
TargetRubyVersion: 3.2
99
Exclude:
1010
- 'bin/**/*'

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.2.2
1+
3.2.6

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:3.2.2-slim@sha256:70370316b02901d7db3f6e453d6259ed4d0d52326d6ac57e3a579f7e3b616e41
1+
FROM ruby:3.2.6-slim@sha256:c582e3505878002d0b6e316d14a4543d276c84ba040afc73fceef25b6321f80f
22

33
# Add build-essential tools.
44
RUN apt-get update -qq && \
@@ -7,7 +7,7 @@ RUN apt-get update -qq && \
77
git \
88
libpq-dev \
99
curl \
10-
netcat \
10+
netcat-traditional \
1111
wkhtmltopdf
1212

1313
# Add Node, required for asset pipeline.
@@ -24,7 +24,6 @@ ARG BUILD_HASH='unknown'
2424
ENV BUILD_HASH=$BUILD_HASH
2525
ARG RAILS_ENV='production'
2626
ARG NODE_ENV='production'
27-
ARG RAILS_MASTER_KEY
2827

2928
# Pre-install gems, so that they can be cached.
3029
COPY Gemfile* /app/
@@ -43,10 +42,8 @@ RUN yarn install --immutable
4342
COPY . /app/
4443

4544
# Precompile assets after copying app because whole Rails pipeline is needed.
46-
RUN --mount=type=secret,id=rails_master_key \
47-
if [ "$RAILS_ENV" = 'production' ] || [ "$RAILS_ENV" = 'staging' ] || [ "$RAILS_ENV" = 'luxproduction' ]; then \
48-
# Use secret if RAILS_MASTER_KEY build arg is not set.
49-
RAILS_MASTER_KEY="${RAILS_MASTER_KEY:-$(cat /run/secrets/rails_master_key)}" bundle exec rails assets:precompile; \
45+
RUN if [ "$RAILS_ENV" = 'production' ] || [ "$RAILS_ENV" = 'staging' ] || [ "$RAILS_ENV" = 'luxproduction' ]; then \
46+
SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile; \
5047
else \
5148
echo "Skipping assets:precompile"; \
5249
fi

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ gem 'http', '~> 5.2.0'
1212
gem 'jbuilder', '~> 2.13.0'
1313
gem 'jquery-rails', '~> 4.6.0'
1414
gem 'kaminari', '~> 1.2.2'
15-
gem 'mini_racer', '~> 0.16.0'
1615
gem 'mollie-api-ruby', '~> 4.15.0'
1716
gem 'net-imap', require: false
1817
gem 'net-pop', require: false
@@ -52,7 +51,7 @@ group :development, :test do
5251
gem 'bullet', '~> 8.0'
5352
gem 'colorize'
5453
gem 'consistency_fail'
55-
gem 'dotenv-rails', '~> 2.8.1'
54+
gem 'dotenv-rails', '~> 3.1.7'
5655
gem 'guard-livereload', '~> 2.5.2'
5756
gem 'guard-rspec', require: false
5857
gem 'pry-byebug'

0 commit comments

Comments
 (0)