Skip to content

Merge pull request #6 from liyangau/remove-consumer-alex #8

Merge pull request #6 from liyangau/remove-consumer-alex

Merge pull request #6 from liyangau/remove-consumer-alex #8

Workflow file for this run

name: Apply changes
on:
push:
branches:
- main
paths-ignore:
- '**/README.md'
jobs:
apply-changes:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.8.0
terraform_wrapper: false
- name: Terraform fmt
id: fmt
run: terraform fmt -check
continue-on-error: true
- name: Terraform Init
id: init
run: terraform init
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ENDPOINT_URL_S3: ${{ secrets.AWS_ENDPOINT_URL_S3 }}
AWS_EC2_METADATA_DISABLED: true
- name: Terraform Validate
id: validate
run: terraform validate -no-color
- name: Terraform Plan
id: plan
run: terraform plan -no-color
continue-on-error: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ENDPOINT_URL_S3: ${{ secrets.AWS_ENDPOINT_URL_S3 }}
AWS_EC2_METADATA_DISABLED: true
TF_VAR_system_token: ${{ secrets.KONNECT_SYSTEM_TOKEN }}
TF_VAR_cp_region: "au"
TF_VAR_exclude_mesh_control_plane: "true"
- name: Terraform Apply
id: apply
if: github.event_name == 'push'
run: terraform apply -auto-approve -input=false
continue-on-error: true
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_ENDPOINT_URL_S3: ${{ secrets.AWS_ENDPOINT_URL_S3 }}
AWS_EC2_METADATA_DISABLED: true
TF_VAR_system_token: ${{ secrets.KONNECT_SYSTEM_TOKEN }}
TF_VAR_cp_region: "au"
TF_VAR_exclude_mesh_control_plane: "true"