Skip to content

Commit 17e71c7

Browse files
authored
Update cert-renewal.yaml to always remove resources
1 parent 2123372 commit 17e71c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/cert-renewal.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,14 @@ jobs:
135135
gh pr create -b master -H $NEW_BRANCH \
136136
--title "Update cert $(date '+%Y-%m-%d')" --body "Update cert $(date '+%Y-%m-%d')" \
137137
--reviewer ${{inputs.PR_REVIEWERS}}
138+
- name: Terminate resources
139+
env:
140+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
141+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
142+
AWS_REGION: ${{ secrets.AWS_REGION }}
143+
if: always()
144+
run: |
145+
cd $GITHUB_WORKSPACE/manual-letsencrypt/terraform
146+
terraform destroy -auto-approve -var-file=input.tfvars -input=false
138147
139148

0 commit comments

Comments
 (0)