Code Monkey home page Code Monkey logo

cloudfoundry-cli-action's Introduction

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

cloudfoundry-cli-action's People

Contributors

elliottpope avatar

Watchers

 avatar  avatar

Forkers

rk-1988

cloudfoundry-cli-action's Issues

exec: "/entrypoint.sh": permission denied: unknown on V7

Hi,
I tried to use the tag v7, but I've got an permission denied error on /entrypoint.sh script, it'S run in a self-hosted runner, here below some error log ans and a screenshot, thanks
Run elliottpope/cloudfoundry-cli-action@v7 ##[debug]Evaluating: inputs.command ##[debug]Evaluating Index: ##[debug]..Evaluating inputs: ##[debug]..=> Object ##[debug]..Evaluating String: ##[debug]..=> 'command' ##[debug]=> 'create-service "$SERVICE_NAME" "$SERVICE_PLAN" "$SERVICE_INSTANCE"' ##[debug]Result: 'create-service "$SERVICE_NAME" "$SERVICE_PLAN" "$SERVICE_INSTANCE"' /usr/bin/docker run --name ellpopecloudfoundrycliactionv7_2804d3 --label abc952 --workdir /github/workspace --rm -e "ARTIFACTORY_API_KEY" -e "ARTIFACTORY_USER" -e "JFROG_CLI_ENV_EXCLUDE" -e "JFROG_CLI_OFFER_CONFIG" -e "JFROG_CLI_BUILD_NAME" -e "JFROG_CLI_BUILD_NUMBER" -e "JFROG_CLI_BUILD_URL" -e "JFROG_CLI_USER_AGENT" -e "PCF_PASSWORD" -e "SERVICE_NAME" -e "SERVICE_PLAN" -e "SERVICE_INSTANCE" -e "INPUT_CF_API" -e "INPUT_USERNAME" -e "INPUT_PASSWORD" -e "INPUT_ORG" -e "INPUT_SPACE" -e "INPUT_COMMAND" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_DEBUG" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/mnt/actions-runner/_work/_temp/_github_home":"/github/home" -v "/mnt/actions-runner/_work/_temp/_github_workflow":"/github/workflow" -v "/mnt/actions-runner/_work/_temp/_runner_file_commands":"/github/file_commands" -v "/mnt/actions-runner/_work/blueprints-annuaire-service/blueprints-annuaire-service":"/github/workspace" ellpope/cloudfoundry-cli-action:v7 "create-service \"$SERVICE_NAME\" \"$SERVICE_PLAN\" \"$SERVICE_INSTANCE\"" docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/entrypoint.sh": permission denied: unknown. ##[debug]Docker Action run completed with exit code 126 ##[debug]Finishing: Creation services โ˜๏ธ
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.