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 .github/bin/install
create .github/workflows/pull_request.yml
create .github/workflows/push.yml
create .github/workflows/workflow_dispatch.yml
chmod .github/bin/install
A .github/workflows
folder was created with some starter files.
GitHub Workflows
There are 3 different workflows.
- Push Workflow: Runs when you push a new commit to a specified branch.
- Pull Request: Runs when you creates a new pull request from a source branch with one or more commits.
- Workflow Dispatch: Runs manually via the web console.
Next, we’ll review these files and their workflows.