From 00e439bc81be57e003d6793a326beb3c4ff294b0 Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 6 Apr 2022 15:52:41 +0300 Subject: [PATCH] adding tag with branch and non-default PHP version e.g. 21.1.20220406-8.0 --- doc/docker/fpm/build.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/docker/fpm/build.sh b/doc/docker/fpm/build.sh index daf308ba6c..0ee5efe726 100755 --- a/doc/docker/fpm/build.sh +++ b/doc/docker/fpm/build.sh @@ -35,7 +35,11 @@ docker pull ubuntu:20.04 docker build --no-cache --build-arg "VERSION=$VERSION" --build-arg "PHP_VERSION=$PHP_VERSION" -t egroupware/egroupware:$TAG . && { docker push egroupware/egroupware:$TAG # further tags are only for the default PHP version - [ $PHP_VERSION != $DEFAULT_PHP_VERSION ] && exit + [ $PHP_VERSION != $DEFAULT_PHP_VERSION ] && { + docker tag egroupware/egroupware:$TAG egroupware/egroupware:$BRANCH-$PHP_VERSION + docker push egroupware/egroupware:$BRANCH-$PHP_VERSION + exit + } # tag only stable releases as latest [ $TAG != "master" ] && { docker tag egroupware/egroupware:$TAG egroupware/egroupware:latest @@ -45,4 +49,4 @@ docker build --no-cache --build-arg "VERSION=$VERSION" --build-arg "PHP_VERSION= docker tag egroupware/egroupware:$TAG egroupware/egroupware:$BRANCH docker push egroupware/egroupware:$BRANCH } -} +} \ No newline at end of file