Skip to content

healthjyk/kusion-actions

 
 

Repository files navigation

KusionStack Action

.github/workflows/main.yml GitHub release license

This is a GitHub Action based on kusion, it can help you operate your KCL configurations.

Inputs

subcommand

Required Kusion subcommand. Default "apply".

workDir

Optional work directory. Default "".

settings

Optional KCL setting files. Default "".

arguments

Optional KCL arguments. Default "".

filenames

Optional KCL files. Default "".

yes

Optional kusion apply --yes. Default "false".

detail

Optional kusion apply --detail. Default "false".

noStyle

Optional kusion apply --no-style. Default "true".

dryRun

Optional kusion apply --dry-run. Default "true".

diffs

Optional diff files. Default "".

Example usage

kusion version:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'version'

kusion apply with dry run:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'apply'
  dryRun: 'true'

kusion apply with settings:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'apply'
  settings: 'ci-test/settings.yaml,kcl.yaml'

kusion apply with workDir:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'apply'
  workDir: '/root/Konfig/appops/nginx-example'
  settings: 'ci-test/settings.yaml,kcl.yaml'

kusion apply with arguments and filenames:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'apply'
  arguments: '-D cluster=default -D env=prod'
  filenames: 'main.k'

kusion apply with yes:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'apply'
  settings: 'ci-test/settings.yaml,kcl.yaml'
  yes: 'true'

kusion apply with yes and detail:

uses: KusionStack/kusion-actions@main
with:
  subcommand: 'apply'
  settings: 'ci-test/settings.yaml,kcl.yaml'
  yes: 'true'
  detail: 'true'

Releases

No releases published

Packages

No packages published

Languages

  • Shell 66.8%
  • Python 18.5%
  • Dockerfile 14.7%