Skip to content
Snippets Groups Projects
Commit 501d95a5 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

command to delete helm release

parent a6e25fad
No related branches found
No related tags found
1 merge request!7K8s deploy
Pipeline #111328 passed with stages
in 4 minutes and 10 seconds
......@@ -80,3 +80,20 @@ deploy:dev:
environment:
name: k8sdev-01
url: "https://defense-finder.dev.pasteur.cloud"
delete-helm-release:
except:
- master
stage: deploy
when: manual
image: harbor.pasteur.fr/kube-system/helm-kubectl:$HELM_VERSION
variables:
GIT_STRATEGY: none # important to not checkout source when branch is deleted
NAMESPACE: "defense-finder-dev"
environment:
name: "k8sdev-01"
action: stop
script:
- echo "Removing $CI_PROJECT_NAME-$CI_ENVIRONMENT_NAME"
- helm delete -n ${NAMESPACE} $CI_PROJECT_NAME-$CI_ENVIRONMENT_NAME
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment