added hashed workflow
This commit is contained in:
@@ -0,0 +1,31 @@
|
|||||||
|
# name: Terraform
|
||||||
|
|
||||||
|
# on:
|
||||||
|
# pull_request:
|
||||||
|
# branches: [ "main" ]
|
||||||
|
# push:
|
||||||
|
# branches: [ "main" ]
|
||||||
|
|
||||||
|
# jobs:
|
||||||
|
# terraform:
|
||||||
|
# runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# steps:
|
||||||
|
# - name: Checkout code
|
||||||
|
# uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# - name: Setup Terraform
|
||||||
|
# uses: hashicorp/setup-terraform@v2
|
||||||
|
|
||||||
|
# - name: Terraform Init
|
||||||
|
# run: terraform -chdir=environments/dev init
|
||||||
|
|
||||||
|
# - name: Terraform Validate
|
||||||
|
# run: terraform -chdir=environments/dev validate
|
||||||
|
|
||||||
|
# - name: Terraform Plan
|
||||||
|
# run: terraform -chdir=environments/dev plan
|
||||||
|
|
||||||
|
# - name: Terraform Apply
|
||||||
|
# if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
|
# run: terraform -chdir=environments/dev apply -auto-approve
|
||||||
Reference in New Issue
Block a user