Skip to content
Snippets Groups Projects
Commit 0217287c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed stop review stage

parent b7d7d467
No related branches found
No related tags found
2 merge requests!1973Development,!1934Resolve "Update Images"
......@@ -74,24 +74,6 @@ stop_review:
- kubectl -n $KUBE_NAMESPACE delete secret $CI_COMMIT_REF_SLUG
- helm -n $KUBE_NAMESPACE delete $DEPLOYMENT_CHART_NAME
when: manual
rules:
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "development"'
when: never
- if: '$CI_COMMIT_TAG || $CI_COMMIT_BRANCH'
cleanup_image_tags:
stage: stop_review
image: $DEPLOY_KUBERNETES_IMAGE
environment:
name: review/$CI_COMMIT_REF_SLUG
action: stop
variables:
script:
- echo "Stopping Deployment..."
- kubectl -n $KUBE_NAMESPACE delete secret $CI_COMMIT_REF_SLUG
- helm -n $KUBE_NAMESPACE delete $DEPLOYMENT_CHART_NAME
when: manual
rules:
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_BRANCH == "development"'
when: never
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment