Skip to content

Commit

Permalink
Update cert-renewal.yaml to always remove resources
Browse files Browse the repository at this point in the history
  • Loading branch information
yambottle authored Jan 2, 2025
1 parent 2123372 commit 17e71c7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cert-renewal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,5 +135,14 @@ jobs:
gh pr create -b master -H $NEW_BRANCH \
--title "Update cert $(date '+%Y-%m-%d')" --body "Update cert $(date '+%Y-%m-%d')" \
--reviewer ${{inputs.PR_REVIEWERS}}
- name: Terminate resources
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}
if: always()
run: |
cd $GITHUB_WORKSPACE/manual-letsencrypt/terraform
terraform destroy -auto-approve -var-file=input.tfvars -input=false

0 comments on commit 17e71c7

Please sign in to comment.