New CI
We’ll use terraspace new ci to generate a starter CI folder structure.
terraspace new ci
Here’s an example with output
$ terraspace new ci
create .circleci/bin/install
create .circleci/config.yml
A .circleci/config.yml
was created with a supporting .circleci/bin
folder. The generated example creates a few starter workflows.
CircleCI Workflows
There are 3 different workflows.
- Main Push Workflow: Runs when you push a new commit to a
main
target branch. - Branch Push Workflow: Runs when you push to any other branch aside from
main
. - Manual Workflow: Runs manually via the Web Console or API.
Next, we’ll review these files and their workflows.