From f24cb37c1ca211ac70c9693c1c838b0c5b0ac8ba Mon Sep 17 00:00:00 2001 From: Vlastimil Zeman Date: Thu, 1 Aug 2024 22:34:47 +0100 Subject: [PATCH] Update git version extraction it seems that new apk --quite only print package name not its version. --- update_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update_deps.sh b/update_deps.sh index 43af162..1ceb24f 100755 --- a/update_deps.sh +++ b/update_deps.sh @@ -44,7 +44,7 @@ image_tag=$(curl 'https://hub.docker.com/v2/repositories/library/node/tags/?page | tail -n 1) # Get major and minor version of git package for image_tag -git_version=$(docker run -i --rm "node:${image_tag}" apk --no-cache --quiet list 'git' | sed -r 's/^git-([0-9]+\.[0-9]+).*/\1/') +git_version=$(docker run -i --rm "node:${image_tag}" apk --no-cache list 'git' | grep "git-" | sed -r 's/^git-([0-9]+\.[0-9]+).*/\1/') sed -i -r "s/^(FROM node:).+$/\1${image_tag}/" Dockerfile sed -i -r "s/(git~=)[0-9]+.[0-9]+/\1${git_version}/" Dockerfile