Coder Social home page Coder Social logo

wa8w1r3 / satellite-config-upload-action Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ibm/satellite-config-upload-action

0.0 0.0 0.0 602 KB

A set of Github Actions that allow users to integrate IBM Cloud Satellite Config into their Github CI pipelines.

License: Apache License 2.0

JavaScript 100.00%

satellite-config-upload-action's Introduction

satellite-config-actions

A set of Github Actions to integrate IBM Cloud Satellite Config into CI/CD pipeline.

A typical use case is:

  1. upload a Kubernetes resource as a new version to your Satellite Config channel (configuration)
  2. create a subscription for the new version
  3. Satellite Config will deploy the new version to all subscribers (clusters)

This action performs step 1 above.

Inputs

apikey

Required The IBM Cloud API key.

channelUuid

Required The IBM Cloud Satellite Config channelUuid.

filename

Required The name of the resource file to upload.

versionName

Required The name of the new version.

satelliteHost

Optional The IBM Cloud Satellite API endpoint. Defaults to https://config.satellite.cloud.ibm.com/graphql

tokenHost

Optional IBM Cloud IAM endpoint. Defaults to https://iam.cloud.ibm.com/identity/token

Outputs

versionUuid

The version id of the new file that was uploaded.

Example usage

In the example below, IBM_API_KEY and SATCON_CONFIG_ID are GitHub secrets.

name: Satellite Config Action Demo
on: [push]
jobs:
  Explore-Satellite-Config-Actions:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Create new version in satellite config
        uses: IBM/satellite-config-upload-action@v1alpha4
        with:
          apikey: ${{ secrets.IBM_API_KEY }}
          channelUuid: ${{ secrets.SATCON_CONFIG_ID }}
          filename: 'test-job.yml'
          versionName: 'version-1'

satellite-config-upload-action's People

Contributors

dalehille avatar khoiohk87 avatar mckaymic avatar knguyen100000010 avatar testinguser avatar stevemar avatar

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.