Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
0217287c
Commit
0217287c
authored
May 12, 2022
by
Dominik Hebeler
Browse files
fixed stop review stage
parent
b7d7d467
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab/ci/deploy.yml
View file @
0217287c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment