Skip to content

[Attempt 2] Remove pycon hostname middleware (#3780) #35

[Attempt 2] Remove pycon hostname middleware (#3780)

[Attempt 2] Remove pycon hostname middleware (#3780) #35

on:
push:
branches:
- main
paths:
- "infrastructure/global/**/*"
- "infrastructure/global/*"
name: Global Terraform Deploy
env:
TF_WORKSPACE: "default"
jobs:
apply-changes:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./infrastructure/global
steps:
- uses: actions/checkout@v2
- uses: hashicorp/setup-terraform@v1
with:
terraform_version: 1.2.4
- name: Terraform Init
run: terraform init
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_IN_AUTOMATION: 1
- name: Terraform Validate
id: validate
run: terraform validate -no-color
- name: Terraform Apply
run: terraform apply -no-color -auto-approve &> /dev/null
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-central-1
TF_IN_AUTOMATION: 1