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)
- When you specify a tag i.e.
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 CLI - When you specify a tag, it will pull down a pre-built Docker image, which should significantly reduce the time your Action takes to execute
- The images are based on Alpine Linux which has a much smaller footprint
name: 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