This repository has been archived by the owner on Sep 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit sets up automated deploys using Travis. The inspiration for many of these changes came from the [Micropurchase app's config](https://github.com/18F/micropurchase/blob/develop/.travis.yml). To enable automated deploys, this commit does the following: - Add a deploy script that takes an environment as an argument and deploys to the appropriate app on cloud.gov - Modify the Travis configuration to add the keys that travis needs to deploy to cloud.gov closes #204
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
set -e | ||
|
||
API="https://api.cloud.gov" | ||
ORG="18f" | ||
SPACE="dolores" | ||
ENVIRONMENT=$1 | ||
|
||
if [ $ENVIRONMENT = 'production' ]; then | ||
NAME="dolores-app" | ||
elif [ $ENVIRONMENT = 'staging' ]; then | ||
NAME="dolores-staging" | ||
else | ||
echo "Unknown environment: $ENVIRONMENT" | ||
exit | ||
fi | ||
|
||
cf login --a $API --u $CF_USERNAME --p $CF_PASSWORD --o $ORG -s $SPACE | ||
cf push $NAME |