Commit 0217287c authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

fixed stop review stage

parent b7d7d467
......@@ -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
......
Markdown is supported
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