Skip to content

Commit

Permalink
Test using secrets.RAILS_MASTER_KEY from repo
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Jul 4, 2024
1 parent 4fce4b0 commit 25f0214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: postgres://postgres:@localhost:5432/roadmap_test
RAILS_MASTER_KEY: 'test_key'

steps:
# Checkout the repo
Expand Down Expand Up @@ -71,7 +70,7 @@ jobs:
run: |
# generate a default credential file and key
cp config/credentials.yml.postgresql config/credentials.yml.enc
echo $RAILS_MASTER_KEY > config/master.key
echo ${{ secrets.RAILS_MASTER_KEY }} > config/master.key
# Debug step: Print Rails.application.credentials.db_username
- name: 'Print db_username Credentials'
Expand Down
2 changes: 1 addition & 1 deletion config/credentials.yml.postgresql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ secret_key_base: my_secret_key

# Database credentials
db_username: postgres
db_password:
db_password: db_password

# Devise credentials (used for user password encryption)
secret_key: my_secret_key
Expand Down

0 comments on commit 25f0214

Please sign in to comment.