chore: apply license headers to all source files #7
Workflow file for this run
This file contains 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
# Copyright Envoy AI Gateway Authors | |
# SPDX-License-Identifier: Apache-2.0 | |
# The full text of the Apache license is available in the LICENSE file at | |
# the root of the repo. | |
name: Terraform | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '.github/terraform/**' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/terraform/**' | |
jobs: | |
terraform: | |
name: fmt - init - plan - apply | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: .github/terraform | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_APPLY_USER_AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_APPLY_USER_AWS_SECRET_ACCESS_KEY }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: hashicorp/setup-terraform@v3 | |
- name: Terraform fmt | |
run: terraform fmt -check | |
- name: Terraform Init | |
run: terraform init | |
- name: Terraform Plan | |
run: terraform plan | |
- name: Terraform Apply | |
# Only run terraform apply on push to the main branch | |
if: github.event_name == 'push' | |
run: terraform apply -auto-approve -input=false |