From a70e8a7ac9e9cf191ca85430fa16b99f00f04871 Mon Sep 17 00:00:00 2001 From: David Gubler Date: Mon, 15 Jan 2024 16:08:13 +0100 Subject: [PATCH] cicd: Add stop workflow --- .github/workflows/test-stop.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/test-stop.yml diff --git a/.github/workflows/test-stop.yml b/.github/workflows/test-stop.yml new file mode 100644 index 0000000..90be656 --- /dev/null +++ b/.github/workflows/test-stop.yml @@ -0,0 +1,21 @@ +env: + KUBECONFIG: /tmp/github-ci.kubeconfig +jobs: + stop: + environment: test + runs-on: ubuntu-latest + steps: + - uses: ./.github/actions/setup + with: + KUBECONFIG_DATA: "${{ secrets.KUBECONFIG_TEST }}" + - env: {} + name: k8ify stop + run: | + kubectl delete deployments,statefulsets,secrets,persistentvolumeclaims,ingresses,services,cronjobs -l "k8ify.ref-slug=${K8IFY_DEPLOYMENT}" + kubectl delete claim -l "k8ify.ref-slug=${K8IFY_DEPLOYMENT}" || true +name: Stop test +"on": + pull_request: + types: + - closed + workflow_dispatch: {}