Merge pull request #1989 from cevich/release-1.3_add_self_destruct

[release-1.3] Cirrus: Add CI self-destruct condition on EOL date
This commit is contained in:
Miloslav Trmač
2023-05-04 19:06:43 +02:00
committed by GitHub

View File

@@ -6,6 +6,17 @@
set -e
_EOL=20250501
if [[ $(date +%Y%m%d) -ge $_EOL ]]; then
die "As of $_EOL this branch is probably
no longer supported in RHEL 8.4, 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
if [[ -r "/etc/automation_environment" ]]; then
source /etc/automation_environment
source $AUTOMATION_LIB_PATH/common_lib.sh