Include missing helper package for installation

This commit is contained in:
Lester Amoin Espiritu
2025-01-01 06:24:42 +08:00
parent 87a3bb5cb7
commit c6c510b22a

View File

@@ -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.