ci: detect apk usage generally

Rather than listing image names, which makes it less easy to
run custom CI jobs.
This commit is contained in:
fanquake
2026-01-28 15:40:00 +00:00
parent 1ed3de5a6d
commit 1cee0e4cd3

View File

@@ -37,7 +37,7 @@ if [ -n "${APT_LLVM_V}" ]; then
)
fi
if [[ $CI_IMAGE_NAME_TAG == *alpine* ]]; then
if command -v apk >/dev/null 2>&1; then
${CI_RETRY_EXE} apk update
# shellcheck disable=SC2086
${CI_RETRY_EXE} apk add --no-cache $CI_BASE_PACKAGES $PACKAGES