Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CNaaS
mist-argus-run
Commits
a3759854
Commit
a3759854
authored
Sep 08, 2021
by
Morten Brekkevold
Browse files
Make a branch of pure destruction!
parent
05db14c4
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
a3759854
...
...
@@ -10,44 +10,17 @@ variables:
ARGUS_API_URL
:
https://argus-api-review-khv-l3z8r5.paas2.uninett.no/api/v1
stages
:
-
build
-
test
-
review
-
staging
-
production
-
destroy
build
:
extends
:
.docker-build
stage
:
build
kubernetes-destroy
:
extends
:
.kubernetes-deploy
stage
:
destroy
environment
:
name
:
destroy
only
:
-
branches
imagescan
:
extends
:
.imagescan
stage
:
test
only
:
-
branches
production
:
extends
:
.production
stage
:
production
variables
:
REPLICAS
:
"
2"
script
:
-
deploy deployment.yaml
staging
:
extends
:
.staging
stage
:
staging
script
:
-
deploy deployment.yaml
review
:
extends
:
.review
stage
:
review
-
destroy
script
:
-
deploy deployment-review.yaml
stop_review
:
extends
:
.stop_review
stage
:
review
-
kubectl get deploy --no-headers=true | awk '{print $1}' | while read FOO; do kubectl delete deploy/$FOO ||
true
; done
-
kubectl get ingress --no-headers=true | awk '{print $1}' | while read FOO; do kubectl delete ingress/$FOO ||
true
; done
-
kubectl get service --no-headers=true | awk '{print $1}' | while read FOO; do kubectl delete service/$FOO ||
true
; done
when
:
manual
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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