Skip to content

Cloud Foundry CLI GitHub Action

Actions

About

Run arbitrary commands using the CF CLI on GitHub Actions
v7
Latest
Star (1)

CloudFoundry CLI GitHub Action

Runs arbitrary CF CLI commands on GitHub Actions so you can deploy apps, manage infrastructure, and continuously deploy

Why Use This Action

There are a few key differences between this Action and others (see cf-cli-action, cloud-foundry-cli-action, and cloudfoundry-action)

  1. 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
  2. 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
  3. The images are based on Alpine Linux which has a much smaller footprint

How to Use this Action

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

Cloud Foundry CLI GitHub Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run arbitrary commands using the CF CLI on GitHub Actions
v7
Latest

Cloud Foundry CLI GitHub Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.