A set of Github Actions to integrate IBM Cloud Satellite Config into CI/CD pipeline.
A typical use case is:
- upload a Kubernetes resource as a new version to your Satellite Config channel (configuration)
- create a subscription for the new version
- Satellite Config will deploy the new version to all subscribers (clusters)
This action performs step 1 above.
Required The IBM Cloud API key.
Required The IBM Cloud Satellite Config channelUuid.
Required The name of the resource file to upload.
Required The name of the new version.
Optional The IBM Cloud Satellite API endpoint. Defaults to https://config.satellite.cloud.ibm.com/graphql
Optional IBM Cloud IAM endpoint. Defaults to https://iam.cloud.ibm.com/identity/token
The version id of the new file that was uploaded.
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'