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.