Skip to content

Commit 4f73b6a

Browse files
committed
allow secret key to be passed in...secretly in CI
1 parent 1f83c54 commit 4f73b6a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,15 @@ jobs:
135135
docker compose up --wait
136136
docker compose exec app rails assets:precompile
137137
docker compose exec -u root app chown -R nara:nara artifacts
138+
env:
139+
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE}}
138140

139141
- name: Run RSpec
140142
if: ${{ always() }}
141143
run: |
142144
docker compose exec -e RAILS_ENV=test app rake check
145+
env:
146+
SECRET_KEY_BASE: ${{ secrets.SECRET_KEY_BASE}}
143147

144148
- name: Run Rubocop
145149
if: ${{ always() }}

docker-compose.ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ services:
66
image: ${DOCKER_APP_IMAGE}
77
volumes: !override
88
- artifacts:/opt/app/artifacts
9+
environment:
10+
SECRET_KEY_BASE: ${SECRET_KEY_BASE:?error}
911

1012
db:
1113
volumes: !reset

0 commit comments

Comments
 (0)