Giter Site home page Giter Site logo

cloudfoundry-deploy's Introduction

IBM Cloud Foundry Deploy

GitHub action for deploying applications to IBM Cloud Foundry using an App Manifest file.

Prerequisites

Setup

Parameters

DISCLAIMER: It's recommended that you use GitHub encrypted secrets to keep your sensitive data safe.

  • IBM_CLOUD_API_KEY

    The IBM Cloud API key is necessary to authenticate this GitHub Action with IBM. Details on how to create an API key can be found here.

  • IBM_CLOUD_CF_API

    The IBM Cloud Foundry API endpoint is used to connect and to deploy the application. A list of supported regions and API Endpoints can be found here.

  • IBM_CLOUD_CF_SPACE

    Apps in an IBM Cloud Foundry Enterprise Environment are scoped within specific spaces. A space exists within a specific organziation. A guide on how to create organizations and spaces can be found here.

  • IBM_CLOUD_CF_ORG

    The Cloud Foundry organization name in which the IBM_CLOUD_CF_SPACE exists.

  • APP_MANIFEST_FILE (optional, default: manifest.yml)

    An App Manifest file contains metadata necessary for the deployment like the name of the application which should be deployed. They provide consistency, reproducibility and can be used for customizations like amount of instances, disk space limit, and memory limit. For a full list of attributes you can specify in an application manifest, see App Manifest Attribute Reference.

    Example Manifest file:

    ---
    applications:
    - name: YOUR-APP
  • APP_VARS_FILE (optional)

    Use this option to supply a variables file when pushing the application. The App Manifest file can contain variables for deployment to different environments, using the ((VARIABLE-NAME)) syntax. The variables are resolved at push time using this variables file, if supplied. For more on how to set up variables, see the 'Add Variables to a Manifest' section of the App Manifest Attribute Reference.

  • RESOURCE_GROUP (optional)

    A resource group is a way for you to organize your account resources in customizable groupings. Details about resource groups and how to set them up can be found here

Workflow Example

name: Deploy to IBM Cloud Foundry
on:
  push:
    branches: [ master ]
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Deploy to IBM Cloud Foundry
        # You may pin to the exact commit or the version.
        uses: IBM/cloudfoundry-deploy@master
        with:
          IBM_CLOUD_API_KEY: ${{ secrets.IBM_CLOUD_API_KEY }}
          IBM_CLOUD_CF_API: ${{ secrets.IBM_CLOUD_CF_API }}
          IBM_CLOUD_CF_ORG: ${{ secrets.IBM_CLOUD_CF_ORG }}
          IBM_CLOUD_CF_SPACE: ${{ secrets.IBM_CLOUD_CF_SPACE }}

cloudfoundry-deploy's People

Contributors

filipecorrea avatar ind1go avatar mustaphazorgati avatar stevemar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cloudfoundry-deploy's Issues

Using the action without a resource group

Hey there!
I would love to use this action without the default resource group. Currently this is not possible, because you the resource group is hard wired.

Can we make it an optional parameter?

My current solution is copying all your steps and removing the -g default.

Upgrade to latest IBM Cloud CLI

I just received the following email regarding the deprecation of IBM Cloud CLI 1.X.X:

131543170-1155cab0-10bf-4427-971a-7c05a7de3985

Does this affect this GitHub Action, or are we fine?

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.