diff --git a/.github/workflows/k8s-destroy.yml b/.github/workflows/k8s-destroy.yml index 1af2ef6a..1958f2c5 100644 --- a/.github/workflows/k8s-destroy.yml +++ b/.github/workflows/k8s-destroy.yml @@ -27,7 +27,7 @@ jobs: - name: Delete PR Deployment run: | kubectl config set-context --current --namespace="${KUBE_NAMESPACE}" - kubectl delete deployment,replicaset,ingress,all -l "app.kubernetes.io/instance=${RELEASE_NAME}" + helm uninstall "${RELEASE_NAME}" kubectl delete secret "${RELEASE_NAME}-tls" - name: Deactivate Github Deployment