We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7493b28 commit 27fe2f4Copy full SHA for 27fe2f4
.github/workflows/pr-cleanup.yaml
@@ -1,7 +1,7 @@
1
name: Cleanup PR deployment and image
2
on:
3
pull_request:
4
- types: [closed]
+ types: closed
5
workflow_dispatch:
6
inputs:
7
pr_number:
@@ -63,5 +63,10 @@ jobs:
63
(
64
curl -X DELETE "https://api.cloudflare.com/client/v4/zones/${{ secrets.PR_DEPLOYMENTS_ZONE_ID }}/dns_records/$record_id" \
65
-H "Authorization: Bearer ${{ secrets.PR_DEPLOYMENTS_CLOUDFLARE_API_TOKEN }}" \
66
- -H "Content-Type:application/json"
+ -H "Content-Type:application/json" | jq -r '.success'
67
) || echo "DNS record not found"
68
+
69
+ - name: "Delete certificate"
70
+ run: |
71
+ set -euxo pipefail
72
+ kuebctl delete certificate "pr${{ steps.pr_number.outputs.PR_NUMBER }}-tls" -n pr-deployment-certs || echo "certificate not found"
0 commit comments