From 83eff39e0019a5dedebc758473bfca748deb8a09 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 15 Nov 2022 09:29:44 +0100 Subject: [PATCH] fix sed to find version --- doc/docker/development/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/docker/development/build.sh b/doc/docker/development/build.sh index 3dc7650aca..99767a3f89 100755 --- a/doc/docker/development/build.sh +++ b/doc/docker/development/build.sh @@ -7,7 +7,7 @@ RECOMMENDED_PHP_VERSION=8.1 PHP_VERSION=${1:-8.1} -TAG=$(docker run --rm -i --entrypoint bash $REPO/$IMAGE:$PHP_VERSION -c "apt update && apt search php$PHP_VERSION-fpm" 2>/dev/null|grep php$PHP_VERSION-fpm|sed "s|^php$PHP_VERSION-fpm/focal[^ ]* .*\([78]\.[0-9]*\.[0-9]*\).*|\1|g") +TAG=$(docker run --rm -i --entrypoint bash $REPO/$IMAGE:$PHP_VERSION -c "apt update && apt search php$PHP_VERSION-fpm" 2>/dev/null|grep php$PHP_VERSION-fpm|sed "s|^php$PHP_VERSION-fpm/[^ ]* \([78]\.[0-9]*\.[0-9]*\).*|\1|g") test -z "$TAG" && { echo "Can't get new tag of $REPO/$IMAGE container --> existing" exit 1 @@ -44,4 +44,4 @@ docker build --build-arg "VERSION=$VERSION" --build-arg="PHP_VERSION=$PHP_VERSIO docker tag $REPO/$IMAGE:$TAG $REPO/$IMAGE:$BRANCH docker push $REPO/$IMAGE:$BRANCH } -} \ No newline at end of file +}