K8s stop
[...]
on_stop: 🧹
🧹:
stage: 🧼
script:
- kubectl delete -f demo.yml -n ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}
- kubectl delete namespace ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}
when: manual
environment:
name: ${CI_PROJECT_NAME}-${CI_COMMIT_REF_SLUG}
action: stop