Skip to content

Commit

Permalink
cicd: Add stop workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgubler committed Jan 15, 2024
1 parent 6f79661 commit a70e8a7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/test-stop.yml
Original file line number Diff line number Diff line change
@@ -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: {}

0 comments on commit a70e8a7

Please sign in to comment.