From 63e76e3ae693f79a1ec1aaea7e52328ba126737c Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Tue, 18 Apr 2023 12:14:00 -0400 Subject: [PATCH] Cirrus: Add CI self-destruct condition on EOL date Signed-off-by: Chris Evich --- contrib/cirrus/setup_environment.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/contrib/cirrus/setup_environment.sh b/contrib/cirrus/setup_environment.sh index 6425d6806a..15512b1511 100755 --- a/contrib/cirrus/setup_environment.sh +++ b/contrib/cirrus/setup_environment.sh @@ -19,6 +19,18 @@ die_unknown() { die "Unknown/unsupported \$$var_name '$var_value'" } +_EOL=20231001 +if [[ $(date +%Y%m%d) -ge $_EOL ]]; then + die "As of $_EOL this branch is probably +no longer supported in RHEL 8.4.0.2, please +confirm this with RHEL PM. If so: + +It should be removed from Cirrus-Cron, +the .cirrus.yml file removed, and +the VM images (manually) unmarked +'permanent=true'" +fi + msg "************************************************************" msg "Setting up runtime environment" msg "************************************************************"