Skip to content

Commit

Permalink
tf automation and github secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
svg153 committed Mar 16, 2024
1 parent 41b6810 commit 3a7fedf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ jobs:
- name: Terraform Init, Format, and Plan
run: make ci
working-directory: apps/github-as-code
env:
TF_IN_AUTOMATION: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# On push to "main", build or change infrastructure according to Terraform configuration files
# Note: It is recommended to set up a required "strict" status check in your repository for "Terraform Cloud". See the documentation on "strict" required status checks for more information: https://help.github.com/en/github/administering-a-repository/types-of-required-status-checks
- name: Terraform Apply
if: github.ref == 'refs/heads/"main"' && github.event_name == 'push'
run: make cd
working-directory: apps/github-as-code
env:
TF_IN_AUTOMATION: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3a7fedf

Please sign in to comment.