mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: return success if pr-cleanup.yaml faisl to find a PR image tag (#8208)
This commit is contained in:
@@ -25,6 +25,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Delete image
|
||||
continue-on-error: true
|
||||
uses: bots-house/ghcr-delete-image-action@v1.1.0
|
||||
with:
|
||||
owner: coder
|
||||
@@ -33,7 +34,6 @@ jobs:
|
||||
tag: pr${{ steps.pr_number.outputs.PR_NUMBER }}
|
||||
|
||||
- name: Set up kubeconfig
|
||||
if: always()
|
||||
run: |
|
||||
set -euxo pipefail
|
||||
mkdir -p ~/.kube
|
||||
@@ -41,12 +41,10 @@ jobs:
|
||||
export KUBECONFIG=~/.kube/config
|
||||
|
||||
- name: Delete helm release
|
||||
if: always()
|
||||
run: |
|
||||
set -euxo 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"
|
||||
if: always()
|
||||
run: |
|
||||
kubectl delete namespace "pr${{ steps.pr_number.outputs.PR_NUMBER }}" || echo "namespace not found"
|
||||
|
||||
Reference in New Issue
Block a user