adding tag with branch and non-default PHP version e.g. 21.1.20220406-8.0

This commit is contained in:
ralf 2022-04-06 15:52:41 +03:00
parent b303f16d61
commit 00e439bc81

View File

@ -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
}
}
}