Skip to content

Commit

Permalink
Remove helm cleanup scheduled job
Browse files Browse the repository at this point in the history
  • Loading branch information
dimrozakis committed Jun 21, 2018
1 parent c0588e0 commit 27045cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 158 deletions.
40 changes: 2 additions & 38 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,11 @@ stages:
- deploy
- test
- undeploy
- jobs

.except: &except
variables:
- $CI_ACTION


#################### DISCOVER STAGE ####################

discover submodules:
except: *except
stage: discover
image: alpine
before_script:
Expand All @@ -48,7 +42,6 @@ discover submodules:
#################### BUILD STAGE ####################

.dind_template: &docker_template
except: *except
stage: build
image: docker:git
services:
Expand Down Expand Up @@ -208,7 +201,6 @@ retag tests: *docker_retag_template


compose:
except: *except
stage: build
image: python:alpine
before_script:
Expand All @@ -230,7 +222,6 @@ compose:
#################### DEPLOY STAGE ####################

.deploy_template: &deploy_template
except: *except
stage: deploy
image: dtzar/helm-kubectl
before_script:
Expand Down Expand Up @@ -365,9 +356,7 @@ deploy review:
url: http://$CI_COMMIT_REF_SLUG$DEPLOY_DOMAIN_SUFFIX
on_stop: undeploy review
except:
<<: *except
refs:
- master
- master
when: manual

deploy master:
Expand All @@ -382,7 +371,6 @@ deploy master:
#################### TEST STAGE ####################

.test_template: &test_template
except: *except
stage: test
image: $TESTS_IMAGE
variables:
Expand Down Expand Up @@ -482,7 +470,6 @@ UI:ip-whitelisting:
#################### UNDEPLOY STAGE ####################

.undeploy_template: &undeploy_template
except: *except
stage: undeploy
image: dtzar/helm-kubectl
variables:
Expand Down Expand Up @@ -518,16 +505,13 @@ undeploy review:
namespace: $CI_PROJECT_NAME-$CI_COMMIT_REF_SLUG
when: manual
except:
<<: *except
refs:
- master
- master


#################### RELEASE STAGE ####################

release: &release_template
when: manual
except: *except
stage: release
image: python:2.7-alpine
before_script:
Expand Down Expand Up @@ -558,23 +542,3 @@ prerelease:
only:
# only for references that match a prelease version string (v1.2.3-beta)
- /^v\d+\.\d+\.\d+-.+$/


#################### JOBS STAGE ####################

cleanup test envs: &undeploy_template
stage: jobs
image: dtzar/helm-kubectl
before_script:
# Required for proper `date` command used by the script.
- apk add --no-cache coreutils
script:
- ./ci/helm-cleanup.sh -y -m90 -p test-$CI_PROJECT_NAME
allow_failure: true
dependencies: []
only:
variables:
- $CI_ACTION == "cleanup-test-envs"
#refs:
# - master
# - staging
120 changes: 0 additions & 120 deletions ci/helm-cleanup.sh

This file was deleted.

0 comments on commit 27045cb

Please sign in to comment.