cf-blue-green
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "cf-blue-green", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "zero-downtime deployment for Cloud Foundry applications", | ||
@@ -22,4 +22,5 @@ "repository": { | ||
"bin": { | ||
"cf-blue-green": "./bin/cf-blue-green" | ||
"cf-blue-green": "./bin/cf-blue-green", | ||
"cf-blue-green-travis": "./bin/cf-blue-green-travis" | ||
} | ||
} |
@@ -39,2 +39,26 @@ # Cloud Foundry blue-green deployment | ||
### Using with Travis | ||
Travis supports [continuous deployment](http://docs.travis-ci.com/user/deployment/), which will automatically deploy your application after its tests pass on a specified branch. To use `cf-blue-green` with Travis, you need to use a [script provider](http://docs.travis-ci.com/user/deployment/script/) instead of the default Cloud Foundry provider. Your Cloud Foundry settings are read from environment variables. | ||
Set up continuous deployment with the following settings in your `.travis.yml` file: | ||
```yml | ||
sudo: true | ||
env: | ||
global: | ||
- CF_APP=[app name] | ||
- CF_API=[API endpoint] | ||
- CF_USERNAME=[user] | ||
- CF_ORGANIZATION=[organization] | ||
- CF_SPACE=[space] | ||
- secure: [CF_PASSWORD=[encrypted with Travis](http://docs.travis-ci.com/user/environment-variables/#Encrypted-Variables)] | ||
before_deploy: npm install -g cf-blue-green | ||
deploy: | ||
provider: script | ||
script: cf-blue-green-travis | ||
on: | ||
branch: [git branch you want to deploy] | ||
``` | ||
### Manifests | ||
@@ -41,0 +65,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8780
6
75