Skip to content

Commit

Permalink
Add decrypt script and start-ci command just for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinashworth committed Jan 27, 2021
1 parent 97be44c commit 42ad487
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions decrypt_secret.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

# See https://docs.github.com/en/actions/reference/encrypted-secrets#limits-for-secrets

# Decrypt the file
mkdir $HOME/secrets
# --batch to prevent interactive command
# --yes to assume "yes" for questions
gpg --quiet --batch --yes --decrypt --passphrase="$SETTINGS_JSON_PASSPHRASE" \
--output $HOME/secrets/settings.json settings.json.gpg
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"test": "start-server-and-test start-testing http://localhost:4004 cypress:open",
"mockaroo": "cd mockaroo; ./mockaroo.sh; cd ..",
"start-mockaroo": "meteor --port 4004 --settings settings-mockaroo.json",
"release": "release-it --only-version"
"release": "release-it --only-version",
"start:ci": "meteor --port 4004 --settings $HOME/secrets/settings.json"
},
"dependencies": {
"@apollo/client": "^3.3.6",
Expand Down

0 comments on commit 42ad487

Please sign in to comment.