Skip to content
terminal

GitHub Action

Setup Configu CLI

v1 Latest version

Setup Configu CLI

terminal

Setup Configu CLI

Install and configure Configu CLI

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Configu CLI

uses: configu/setup-cli-action@v1

Learn more about this action in configu/setup-cli-action

Choose a version

configu/setup-cli-action

Test setup Configu CLI GitHub Actions

The configu/setup-cli-action action is a composite action that sets up Configu CLI in your GitHub Actions workflow by downloading a specific version of Configu CLI and adding it to the PATH.

After you've used the action, subsequent steps in the same job can run arbitrary Configu CLI commands. All of Configu commands work exactly like they do on your local command line.

Usage

This action can be run on ubuntu-* and macos-* GitHub Actions runners.

The default configuration installs the latest version of Configu CLI.

steps:
  - uses: configu/setup-cli-action@v1

A specific version of Configu CLI can be installed.

steps:
  - uses: configu/setup-cli-action@v1
    with:
      version: 0.4.4

Credentials for Configu Platform can be configured.

jobs:
  some-job:
    runs-on: ubuntu-latest
    env:
      CONFIGU_ORG: ${{ secrets.CONFIGU_ORG }}
      CONFIGU_TOKEN: ${{ secrets.CONFIGU_TOKEN }}
    steps:
      - name: Setup Configu CLI
        uses: configu/setup-cli-action@v1

      - name: Export configurations
        run: | 
          configu eval --store 'configu' --set 'production' --schema 'path/to/schema.cfgu.json' | configu export

Inputs

The action supports the following inputs.

License

This Action is licensed under Apache License 2.0.

References