chore(deps): update all dependencies to v1.19.5 (#944) #780
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Terraform DNS GHA | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| jobs: | |
| tf_lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v4 | |
| with: | |
| cli_config_credentials_token: ${{ secrets.TERRAFORM_TOKEN }} | |
| - name: Test if terraform configs are valid | |
| working-directory: terraform/dns | |
| run: | | |
| terraform init -input=false | |
| terraform fmt -check -recursive -diff | |
| plan: | |
| needs: tf_lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v4 | |
| with: | |
| cli_config_credentials_token: ${{ secrets.TERRAFORM_TOKEN }} | |
| - name: Terraform Init | |
| working-directory: terraform/dns | |
| run: | | |
| terraform init -input=false | |
| terraform plan -input=false | |
| apply_approval: | |
| runs-on: ubuntu-latest | |
| needs: plan | |
| environment: terraform-approval # requires approval | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Terraform | |
| uses: hashicorp/setup-terraform@v4 | |
| with: | |
| cli_config_credentials_token: ${{ secrets.TERRAFORM_TOKEN }} | |
| - name: Apply code | |
| working-directory: terraform/dns | |
| run: | | |
| terraform init -input=false | |
| terraform apply -auto-approve -input=false |