This Action for pcf enables arbitrary actions with the cf
command-line client, including pushing code to Pivotal Cloud Foundry.
An example workflow to publish your code to PCF:
workflow "Deploy to PCF after build" {
resolves = ["Deploy to PCF"]
on = "push"
}
action "Deploy to PCF" {
uses = "d3sandoval/[email protected]"
secrets = ["CF_USERNAME", "CF_PASSWORD"]
env = {
CF_TARGET_ORG = "my-org"
CF_TARGET_SPACE = "development"
}
args = "push APP_NAME"
}
CF_USERNAME
- Optional. Authenticating user for PCF.CF_PASSWORD
- Optional. Authenticating password for PCF.
For more info on command line authentication, see http://cli.cloudfoundry.org/en-US/cf/auth.html
CF_API
- Optional. Target api url (see http://cli.cloudfoundry.org/en-US/cf/api.html)CF_TARGET_ORG
- Optional. Targeted org (see http://cli.cloudfoundry.org/en-US/cf/target.html)CF_TARGET_SPACE
- Optional. Targeted space (see http://cli.cloudfoundry.org/en-US/cf/target.html)
To authenticate and publish to a cloud foundry instance:
action "Deploy to PCF" {
uses = "d3sandoval/[email protected]"
secrets = ["CF_USERNAME", "CF_PASSWORD"]
env = {
CF_TARGET_ORG = "my-org"
CF_TARGET_SPACE = "development"
}
args = "push APP_NAME"
}
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.
Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.