Commit 65a2230b authored by Rémy Coutable's avatar Rémy Coutable

Fix the automated review apps cleanup job

The job needed an `environment` declared in order to be able to
communicate with the Kubernetes cluster.
Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5e5eab99
......@@ -1175,7 +1175,7 @@ stop_review:
- master
- /(^docs[\/-].*|.*-docs$)/
automated_review_cleanup:
schedule:review_apps_cleanup:
<<: *dedicated-no-docs-pull-cache-job
image: registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-charts-build-base
stage: build
......@@ -1188,10 +1188,14 @@ automated_review_cleanup:
GIT_DEPTH: "1"
script:
- ruby -rrubygems scripts/review_apps/automated_cleanup.rb
environment:
name: review/auto-cleanup
action: stop
only:
refs:
- schedules@gitlab-org/gitlab-ce
- schedules@gitlab-org/gitlab-ee
kubernetes: active
except:
- tags
- /(^docs[\/-].*|.*-docs$)/
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