From c6c510b22aa55838beae8fa6e79c8ea3eefb8d13 Mon Sep 17 00:00:00 2001 From: Lester Amoin Espiritu Date: Wed, 1 Jan 2025 06:24:42 +0800 Subject: [PATCH] Include missing helper package for installation --- root/setup.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/root/setup.sh b/root/setup.sh index 3973277..ab70bee 100644 --- a/root/setup.sh +++ b/root/setup.sh @@ -75,14 +75,19 @@ function install_packages() { # Gitlab-runner package contains scriptlets which do not function properly inside a # container-build environment where systemd is not active/running. if [[ ${ENABLE_FIPS} == true && $(cat /proc/sys/crypto/fips_enabled) == 1 ]]; then - PACKAGE_FILE="gitlab-runner_${TARGETARCH}-fips.rpm" + PACKAGE_FILES=( + "https://gitlab-runner-downloads.s3.amazonaws.com/$RUNNER_VERSION/rpm/gitlab-runner_${TARGETARCH}-fips.rpm" + ) else - PACKAGE_FILE="gitlab-runner_${TARGETARCH}.rpm" + PACKAGE_FILES=( + "https://gitlab-runner-downloads.s3.amazonaws.com/$RUNNER_VERSION/rpm/gitlab-runner_${TARGETARCH}.rpm" + "https://gitlab-runner-downloads.s3.amazonaws.com/$RUNNER_VERSION/rpm/gitlab-runner-helper-images.rpm" + ) fi "${dnf[@]}" "${exclude_args[@]}" \ --setopt=tsflags=noscripts install \ - "https://gitlab-runner-downloads.s3.amazonaws.com/$RUNNER_VERSION/rpm/${PACKAGE_FILE}" + ${PACKAGE_FILES[@]} # Also don't start unnecessary or broken # systemd services, like anything kernel related or login gettys.