Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronskiba committed Jul 4, 2024
1 parent 7124219 commit 4c328e0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,17 @@ jobs:
EDITOR: "cat"
run: |
# generate a default credential file and key
export RAILS_MASTER_KEY=$(bundle exec rails secret | head -c 32)
export RAILS_MASTER_KEY=$(bundle exec rails secret | head -c 32) >> $GITHUB_ENV
echo $RAILS_MASTER_KEY > config/master.key
echo "RAILS_MASTER_KEY length: ${#RAILS_MASTER_KEY}"
cp config/credentials.yml.postgresql config/credentials.yml
bundle exec rails credentials:edit
# Step to print test_variable from credentials.yml
- name: Print test_variable from credentials.yml
run: |
echo "test_variable: $(bundle exec rails runner 'puts Rails.application.credentials.test_variable')"
# Set the path to the wkhtmltopdf executable
- name: 'Determine wkhtmltopdf location'
run: echo "WICKED_PDF_PATH=`bundle exec which wkhtmltopdf`" >> $GITHUB_ENV
Expand Down
2 changes: 2 additions & 0 deletions config/credentials.yml.postgresql
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# DMPRoadmap Rails credentials file
# To generate secrets and peppers, run the following in another tab/window `bin/rails secret`

test_variable: hello

# Used as the base secret for all MessageVerifiers in Rails, including the one protecting cookies.
secret_key_base: my_secret_key

Expand Down
4 changes: 2 additions & 2 deletions config/initializers/recaptcha.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# the keys are set in config/credentials.yml.env

Recaptcha.configure do |config|
config.site_key = Rails.application.credentials.recaptcha[:site_key]
config.secret_key = Rails.application.credentials.recaptcha[:secret_key]
config.site_key = 1234
config.secret_key = 1234
config.proxy = 'http://someproxy.com:port'
end

0 comments on commit 4c328e0

Please sign in to comment.