Skip to content

Commit 7fb73a5

Browse files
Revert git build to use dummy secret for validating DB migrations
1 parent 528af28 commit 7fb73a5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,6 @@ jobs:
121121
POSTGRES_USER: root
122122
POSTGRES_PASSWORD: root
123123
steps:
124-
- name: Generate throwaway secret_key_base
125-
run: |
126-
mkdir -p /run/secrets
127-
bundle exec rails secret > /run/secrets/SECRET_KEY_BASE
128-
129124
- name: Run tests
130125
env:
131126
RAILS_ENV: test
@@ -137,6 +132,7 @@ jobs:
137132
- name: Validate database migrations
138133
env:
139134
RAILS_ENV: production
135+
SECRET_KEY_BASE: dummy_test_secret_key_base
140136
DISABLE_DATABASE_ENVIRONMENT_CHECK: 1
141137
run: bundle exec rails --trace db:drop db:create db:migrate
142138

0 commit comments

Comments
 (0)