Skip to content

elliottpope/cloudfoundry-cli-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

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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