mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
fix sed to find version
This commit is contained in:
parent
6a5d189489
commit
83eff39e00
@ -7,7 +7,7 @@ RECOMMENDED_PHP_VERSION=8.1
|
|||||||
|
|
||||||
PHP_VERSION=${1:-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" && {
|
test -z "$TAG" && {
|
||||||
echo "Can't get new tag of $REPO/$IMAGE container --> existing"
|
echo "Can't get new tag of $REPO/$IMAGE container --> existing"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user