From 431465f90e07cc50dff031e5f88b91741e8d9de3 Mon Sep 17 00:00:00 2001 From: Christoph Mewes Date: Wed, 7 Jun 2023 12:08:03 +0200 Subject: [PATCH] install git --- hack/build-image.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hack/build-image.sh b/hack/build-image.sh index 2f541a793fc2..d8d4c620c042 100755 --- a/hack/build-image.sh +++ b/hack/build-image.sh @@ -16,6 +16,12 @@ set -euo pipefail +# make git available +if ! [ -x "$(command -v git)" ]; then + echo "Installing git ..." + yum install -y git +fi + # in CI, make use of the registry mirror to avoid getting rate limited if [ -n "${DOCKER_REGISTRY_MIRROR_ADDR:-}" ]; then # remove "http://" or "https://" prefix