mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-06 07:21:36 +01:00
fix(ci): Add Gitlab-CI sledgehammer deployment removal
This commit is contained in:
@@ -183,8 +183,16 @@ env-cleanup:
|
||||
$ENV_STOP_BEFORE != "no"
|
||||
when: "always"
|
||||
script:
|
||||
- "helmfile destroy --namespace ${NAMESPACE}"
|
||||
- "kubectl delete pvc --all --namespace ${NAMESPACE}"
|
||||
- |
|
||||
if [ "${OPENDESK_SLEDGEHAMMER_DESTROY_ENABLED}" = "yes" ]; then
|
||||
for OPENDESK_RELEASE in $(helm ls -n ${NAMESPACE} -aq); do
|
||||
helm uninstall -n ${NAMESPACE} ${OPENDESK_RELEASE};
|
||||
done
|
||||
kubectl delete pvc --all --namespace ${NAMESPACE};
|
||||
kubectl delete jobs --all --namespace ${NAMESPACE};
|
||||
else
|
||||
helmfile destroy --namespace ${NAMESPACE};
|
||||
fi
|
||||
stage: "env-cleanup"
|
||||
|
||||
env-start:
|
||||
|
||||
@@ -156,6 +156,12 @@ and wait a little. After the deployment is finished some bootstrapping is
|
||||
executed which might take some more minutes before you can log in your new
|
||||
instance.
|
||||
|
||||
Deployments can be removed with:
|
||||
|
||||
```shell
|
||||
helmfile destroy -n <NAMESPACE>
|
||||
```
|
||||
|
||||
## Offline deployment
|
||||
|
||||
Before executing a [local deployment](#local-deployment), you can set following
|
||||
|
||||
Reference in New Issue
Block a user