Runs arbitrary CF CLI commands on GitHub Actions so you can deploy apps, manage infrastructure, and continuously deploy
There are a few key differences between this Action and others (see cf-cli-action, cloud-foundry-cli-action, and cloudfoundry-action)
cloudfoundry-cli-action@v6
it will pull the latest release of that major version of the CF CLI. This allows you to be backwards compatible with older CF installations that do not support v7 of the CF CLIname: Deploy to CF
on:
push:
branches:
[main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: elliottpope/cloudfoundry-cli-action@v6
with:
CF_API: https://api.my-cloud-foundry.com
USERNAME: ${{ secrets.CF_USER }}
PASSWORD: ${{ secrets.CF_PASSWORD }}
ORG: my-org
SPACE: dev
COMMAND: push my-app