Update Node.js to v18 - abandoned #1
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
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 |