forked from extern/egroupware
adding tag with branch and non-default PHP version e.g. 21.1.20220406-8.0
This commit is contained in:
parent
b303f16d61
commit
00e439bc81
@ -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 build --no-cache --build-arg "VERSION=$VERSION" --build-arg "PHP_VERSION=$PHP_VERSION" -t egroupware/egroupware:$TAG . && {
|
||||||
docker push egroupware/egroupware:$TAG
|
docker push egroupware/egroupware:$TAG
|
||||||
# further tags are only for the default PHP version
|
# 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 only stable releases as latest
|
||||||
[ $TAG != "master" ] && {
|
[ $TAG != "master" ] && {
|
||||||
docker tag egroupware/egroupware:$TAG egroupware/egroupware:latest
|
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 tag egroupware/egroupware:$TAG egroupware/egroupware:$BRANCH
|
||||||
docker push egroupware/egroupware:$BRANCH
|
docker push egroupware/egroupware:$BRANCH
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user