Commit a3759854 authored by Morten Brekkevold's avatar Morten Brekkevold
Browse files

Make a branch of pure destruction!

parent 05db14c4
......@@ -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
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