Skip to content

DreaminDani/cloud-foundry-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action for PCF

This Action for pcf enables arbitrary actions with the cf command-line client, including pushing code to Pivotal Cloud Foundry.

Usage

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"
}

Secrets

  • 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

Environment variables

Example

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"
}

License

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.