Include missing helper package for installation
This commit is contained in:
@@ -75,14 +75,19 @@ function install_packages() {
|
|||||||
# Gitlab-runner package contains scriptlets which do not function properly inside a
|
# Gitlab-runner package contains scriptlets which do not function properly inside a
|
||||||
# container-build environment where systemd is not active/running.
|
# container-build environment where systemd is not active/running.
|
||||||
if [[ ${ENABLE_FIPS} == true && $(cat /proc/sys/crypto/fips_enabled) == 1 ]]; then
|
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
|
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
|
fi
|
||||||
|
|
||||||
"${dnf[@]}" "${exclude_args[@]}" \
|
"${dnf[@]}" "${exclude_args[@]}" \
|
||||||
--setopt=tsflags=noscripts install \
|
--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
|
# Also don't start unnecessary or broken
|
||||||
# systemd services, like anything kernel related or login gettys.
|
# systemd services, like anything kernel related or login gettys.
|
||||||
|
|||||||
Reference in New Issue
Block a user