Add support for GitLab CI

and remove Jenkins related files
This commit is contained in:
Alexander Todorov 2021-07-16 12:48:47 +03:00 committed by Ondřej Budai
parent e778771f2b
commit f569c38ea9
10 changed files with 164 additions and 252 deletions

View file

@ -11,7 +11,7 @@ source /etc/os-release
ARCH=$(uname -m)
# Register RHEL if we are provided with a registration script.
if [[ -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then
if [[ $ID == "rhel" && -n "${RHN_REGISTRATION_SCRIPT:-}" ]] && ! sudo subscription-manager status; then
greenprint "🪙 Registering RHEL instance"
sudo chmod +x $RHN_REGISTRATION_SCRIPT
sudo $RHN_REGISTRATION_SCRIPT