/cirrus-cli-example

Primary LanguageShellMIT LicenseMIT

cirrus-cli-example

https://github.com/cirruslabs/cirrus-cli/

Example Commands

Basics

Validate .cirrus.yml file:

cirrus validate

Print output normally to console:

cirrus run -o simple

Pass a value into cirrus as an environment variable:

cirrus run -e env_parameter="cmd-line"

SOPS

Decrypt sops.env to a temporary file and make it available only for the duration of the cirrus child process:

sops exec-file sops.env 'cirrus run -o simple -e env_parameter="cmd-level" --env-file {}'

Decrypt sops.env and extract a single value which gets passed to cirrus as an environment variable:

cirrus run -o simple -e env_parameter=$(sops -d --extract '["password"]' sops.env)