Skip to content

Instantly share code, notes, and snippets.

@ukd1 ukd1/decrypt.sh
Created Nov 15, 2013

Embed
What would you like to do?
Super simple shell scripts we use at www.rainforestqa.com for encrypting / decrypting / updating our Heroku apps with private environment variables
#!/bin/bash
gpg qa.txt.asc
gpg staging.txt.asc
gpg production.txt.asc
#!/bin/bash
gpg --yes --recipient russ --recipient simon -aes qa.txt
gpg --yes --recipient russ --recipient simon -aes staging.txt
gpg --yes --recipient russ --recipient simon -aes production.txt
#!/bin/bash
gpg -o production.txt -d production.txt.asc
heroku config:set $(sed '/^#/d' production.txt) --app <production-app-name>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.