Jump to content
Toggle menu
  • 22 articles
  • 1 files
  • 1 users
  • 216 edits
terraform-github-tacos
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Auto apply

From terraform-github-tacos
More actions

A workspace applies without an approval when its environment has no required reviewers, as with HCP Terraform's auto apply. GitHub decides whether the apply job waits, so this is set on the environment: create it without reviewers, with the module's auto_apply, and list the workspace in the pending step's auto-apply input. The list is what lets pending tell such an environment from one created by mistake, which it refuses. Every other workspace waits for its reviewers.

      - uses: femiwiki/terraform-github-tacos@v0.7.0
        id: pending
        with:
          step: pending
          auto-apply: dns

After the merge, an auto-apply workspace applies as soon as the push is planned, and the apply still goes ahead only when its fresh plan matches that one. With apply-before-merge it applies as soon as the pull request is planned, before anyone has reviewed it, so give auto apply only to workspaces that anyone who can push a branch may change.