Skip to content

Update Node.js to v18 - abandoned #1

Update Node.js to v18 - abandoned

Update Node.js to v18 - abandoned #1

Workflow file for this run

name: Teardown PR Environment
on:
pull_request:
types:
- closed
jobs:
destroy:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
- name: Destroy PR environment
working-directory: packages/terraform/development
run: |
terraform init \
-backend-config="bucket=carto-bot-tf-state" \
-backend-config="key=pr-${{ github.event.pull_request.number }}.tfstate" \
-backend-config="region=eu-central-1"
terraform destroy \
-var="discord_public_key=na" \
-var="discord_token=na" \
-var="app_name=carto-bot-pr-${{ github.event.pull_request.number }}" \
-auto-approve