chore(deps): update all dependencies (#943) #667
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 backblaze 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/backblaze | |
| 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/backblaze | |
| 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/backblaze | |
| run: | | |
| terraform init -input=false | |
| terraform apply -auto-approve -input=false |