/kusion-action

Kusion Github Action

Primary LanguageShellMIT LicenseMIT

go cli action prototype

.github/workflows/main.yml GitHub release Github All Releases license

To learn how this action was built, see "Creating a Docker container action" in the GitHub Help documentation.

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: elliotxx/kusion-action@main
with:
  subcommand: 'version'

kusion apply with dry run:

uses: elliotxx/kusion-action@main
with:
  subcommand: 'apply'
  dryRun: 'true'

kusion apply with settings:

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

kusion apply with workDir:

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

kusion apply with arguments and filenames:

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

kusion apply with yes:

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

kusion apply with yes and detail:

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