File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- name : Cleanup PR deployment and image
1
+ name : pr-cleanup
2
2
on :
3
3
pull_request :
4
4
types : closed
@@ -35,14 +35,14 @@ jobs:
35
35
36
36
- name : Set up kubeconfig
37
37
run : |
38
- set -euxo pipefail
38
+ set -euo pipefail
39
39
mkdir -p ~/.kube
40
40
echo "${{ secrets.PR_DEPLOYMENTS_KUBECONFIG }}" > ~/.kube/config
41
41
export KUBECONFIG=~/.kube/config
42
42
43
43
- name : Delete helm release
44
44
run : |
45
- set -euxo pipefail
45
+ set -euo pipefail
46
46
helm delete --namespace "pr${{ steps.pr_number.outputs.PR_NUMBER }}" "pr${{ steps.pr_number.outputs.PR_NUMBER }}" || echo "helm release not found"
47
47
48
48
- name : " Remove PR namespace"
51
51
52
52
- name : " Remove DNS records"
53
53
run : |
54
- set -euxo pipefail
54
+ set -euo pipefail
55
55
# Get identifier for the record
56
56
record_id=$(curl -X GET "https://api.cloudflare.com/client/v4/zones/${{ secrets.PR_DEPLOYMENTS_ZONE_ID }}/dns_records?name=%2A.pr${{ steps.pr_number.outputs.PR_NUMBER }}.${{ secrets.PR_DEPLOYMENTS_DOMAIN }}" \
57
57
-H "Authorization: Bearer ${{ secrets.PR_DEPLOYMENTS_CLOUDFLARE_API_TOKEN }}" \
You can’t perform that action at this time.
0 commit comments