Quickstart
Installation
Download the cli here
Plan
Run the following command to build an action plan
tsctl plan --name <plan_name> --source <path_to_source>
This will generate a plan file in the working directory named <plan_name>.plan
Run tsctl explain <plan_name>.plan
to get a detailed description of the action plan
Input
Run the following command to generate stack inputs from the plan. The inputs contain credentials and parameters for your software delivery stack that will be used by actions in the action plan.
tsctl stack init --from-plan <plan_name>.plan
This will generate an input file in the working directory named inputs.yaml
with the keys and null values for the required inputs.
DO NOT MODIFY INPUT KEYS
Encryption
TruStacks uses sops and age for input encryption.
Run the following commands to encrypt your inputs
- Generate an age key
age-keygen -o key.txt
- Encrypt your stack inputs file using the public key from the key.txt file
sops -e -i --age <age_public_key> inputs.yaml
Run
Action plans require docker.
Run the following in a docker environment (local or CI/CD) from the root of your source.
SOPS_AGE_KEY=<age_secret_key> tsctl run <plan_file> --source <path_to_source> --inputs <path_to_encrypted_inputs> --stages feedback
Remove the --stages
option to run the complete plan