Last active
October 26, 2018 17:47
-
-
Save brandoncc/e680d39490c434b059486fa08fc089c6 to your computer and use it in GitHub Desktop.
nanobox circleci config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 2 | |
jobs: | |
test-job: | |
machine: true | |
steps: | |
- checkout | |
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)" | |
- run: nanobox evar add local CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY | |
- run: nanobox evar add local CLOUDINARY_API_SECRET=$CLOUDINARY_API_SECRET | |
- run: nanobox evar add local CLOUDINARY_CLOUD_NAME=$CLOUDINARY_CLOUD_NAME | |
- run: nanobox evar add local CLOUDINARY_SECURE=$CLOUDINARY_SECURE | |
- run: nanobox evar add local KEY_ENCRYPTION_KEY=$KEY_ENCRYPTION_KEY | |
- run: nanobox evar add local MAXMIND_API_KEY=$MAXMIND_API_KEY | |
- run: nanobox evar add local NANOBOX_PASSWORD=$NANOBOX_PASSWORD | |
- run: nanobox evar add local NANOBOX_USERNAME=$NANOBOX_USERNAME | |
- run: nanobox evar add local OPENCAGE_API_KEY=$OPENCAGE_API_KEY | |
- run: nanobox evar add local RAILS_ENV=$RAILS_ENV | |
- run: nanobox evar add local SECRET_KEY_BASE=$SECRET_KEY_BASE | |
- run: nanobox evar add local NANOBOX=true | |
- run: nanobox evar add local RECAPTCHA_SITE_KEY=$RECAPTCHA_SITE_KEY | |
- run: nanobox evar add local RECAPTCHA_SECRET_KEY=$RECAPTCHA_SECRET_KEY | |
- run: nanobox run bundle exec rake db:create db:test:prepare | |
- run: nanobox run bundle exec rspec | |
- run: nanobox run bundle exec teaspoon | |
deploy-job: | |
machine: true | |
steps: | |
- checkout | |
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)" | |
- run: nanobox remote add my-app | |
- run: nanobox deploy -m "$(git log --format=format:"%s (%h)" -n 1 $CIRCLE_SHA1)" | |
workflows: | |
version: 2 | |
test-deploy: | |
jobs: | |
- test-job | |
- deploy-job: | |
requires: | |
- test-job | |
filters: | |
branches: | |
only: master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment