0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-05 22:04:58 +01:00

Add support for betas to generate-stackbrew-library.sh

Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
Tilo Spannagel 2018-07-26 18:28:09 +02:00
parent ffa7769319
commit 4cefdbfb40

View file

@ -73,6 +73,12 @@ latest_rc=$( curl -fsSL 'https://download.nextcloud.com/server/prereleases/' |ta
sort -uV | \ sort -uV | \
tail -1 ) tail -1 )
latest_beta=$( curl -fsSL 'https://download.nextcloud.com/server/prereleases/' |tac|tac| \
grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}beta[[:digit:]]+' | \
grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}beta[[:digit:]]+' | \
sort -uV | \
tail -1 )
# Generate each of the tags. # Generate each of the tags.
versions=( */ ) versions=( */ )
versions=( "${versions[@]%/}" ) versions=( "${versions[@]%/}" )
@ -90,7 +96,7 @@ for version in "${versions[@]}"; do
versionPostfix="" versionPostfix=""
if [ "$fullversion_with_extension" != "$fullversion" ]; then if [ "$fullversion_with_extension" != "$fullversion" ]; then
versionAliases=( "$fullversion_with_extension" ) versionAliases=( "$fullversion_with_extension" )
versionPostfix="-rc" versionPostfix="-$( echo "$fullversion_with_extension" | tr '[:upper:]' '[:lower:]' | grep -oE '(beta|rc)')"
fi fi
versionAliases+=( "$fullversion$versionPostfix" "${fullversion%.*}$versionPostfix" "${fullversion%.*.*}$versionPostfix" ) versionAliases+=( "$fullversion$versionPostfix" "${fullversion%.*}$versionPostfix" "${fullversion%.*.*}$versionPostfix" )
@ -100,6 +106,9 @@ for version in "${versions[@]}"; do
if [ "$fullversion_with_extension" = "$latest_rc" ]; then if [ "$fullversion_with_extension" = "$latest_rc" ]; then
versionAliases+=( "rc" ) versionAliases+=( "rc" )
fi fi
if [ "$fullversion_with_extension" = "$latest_beta" ]; then
versionAliases+=( "beta" )
fi
for channel in "${!release_channel[@]}"; do for channel in "${!release_channel[@]}"; do
if [ "$fullversion_with_extension" = "${release_channel[$channel]}" ]; then if [ "$fullversion_with_extension" = "${release_channel[$channel]}" ]; then