From 8c924b825c84336177ca325e455f403c41199c3e Mon Sep 17 00:00:00 2001 From: Chris Evich Date: Wed, 3 May 2023 10:47:56 -0400 Subject: [PATCH] Cirrus: Add CI self-destruct condition on EOL date This branch will never receive any security-backports when the associated RHEL release reaches EOL. Add a condition to force CI to break with a helpful message, after this RHEL EOL date. Signed-off-by: Chris Evich --- contrib/cirrus/runner.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh index 63de27e2..0d4b9b23 100755 --- a/contrib/cirrus/runner.sh +++ b/contrib/cirrus/runner.sh @@ -6,6 +6,17 @@ set -e +_EOL=20270501 +if [[ $(date +%Y%m%d) -ge $_EOL ]]; then + die "As of $_EOL this branch is probably +no longer supported in RHEL 9.0/8.8, please +confirm this with RHEL Program Management. If so: +It should be removed from Cirrus-Cron, +the .cirrus.yml file removed, and +the VM images (manually) unmarked +'permanent=true'" +fi + # BEGIN Global export of all variables set -a