mirror of https://github.com/coder/coder.git
ci: update pr-cleanup.yaml to remove `set -x` (#9358)
This commit is contained in:
parent
f97b497966
commit
54032ccfe8
|
@ -1,4 +1,4 @@
|
|||
name: Cleanup PR deployment and image
|
||||
name: pr-cleanup
|
||||
on:
|
||||
pull_request:
|
||||
types: closed
|
||||
|
@ -35,14 +35,14 @@ jobs:
|
|||
|
||||
- name: Set up kubeconfig
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
set -euo pipefail
|
||||
mkdir -p ~/.kube
|
||||
echo "${{ secrets.PR_DEPLOYMENTS_KUBECONFIG }}" > ~/.kube/config
|
||||
export KUBECONFIG=~/.kube/config
|
||||
|
||||
- name: Delete helm release
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
set -euo pipefail
|
||||
helm delete --namespace "pr${{ steps.pr_number.outputs.PR_NUMBER }}" "pr${{ steps.pr_number.outputs.PR_NUMBER }}" || echo "helm release not found"
|
||||
|
||||
- name: "Remove PR namespace"
|
||||
|
@ -51,7 +51,7 @@ jobs:
|
|||
|
||||
- name: "Remove DNS records"
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
set -euo pipefail
|
||||
# Get identifier for the record
|
||||
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 }}" \
|
||||
-H "Authorization: Bearer ${{ secrets.PR_DEPLOYMENTS_CLOUDFLARE_API_TOKEN }}" \
|
||||
|
|
Loading…
Reference in New Issue