The configu/setup-cli-codefresh
project contains a typed plugin
that sets up Configu CLI in your Codefresh pipelines
workflow by downloading a specific version of Configu CLI and adding it to the PATH
.
After you've used the plugin, subsequent commands
in the same step
can run arbitrary Configu CLI commands.
All of Configu commands work exactly like they do on your local command line.
The default configuration installs the latest version of Configu CLI.
workflow:
configu_export:
title: Export configurations
type: configu
arguments:
COMMANDS:
- configu --version
- configu eval --store 'configu' --set 'test/codefresh' --schema '/codefresh/volume/${{CF_REPO_NAME}}/.cfgu.json' | configu export
A specific version of Configu CLI can be installed.
workflow:
configu_version:
title: Install specific version of Configu CLI
type: configu
arguments:
VERSION: 0.12.5
COMMANDS:
- configu --version
Credentials for Configu store
(app.configu.com) can be configured.
- In your
Configu platform organization
, go toSettings > Access Tokens
- Create a
new Access
token andcopy its value
- In your
Codefresh project
, go to toProjects > Settings > Variables
- Create a new CONFIGU_ORG variable with your Configu Organization id
- Create a new CONFIGU_TOKEN variable with the Access Token value you copied in step 2, make sure to enable
"Encrypt Value"
.
The plugin supports the following inputs.
This plugin is licensed under Apache License 2.0.