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:
parent
ffa7769319
commit
4cefdbfb40
1 changed files with 10 additions and 1 deletions
|
@ -73,6 +73,12 @@ latest_rc=$( curl -fsSL 'https://download.nextcloud.com/server/prereleases/' |ta
|
|||
sort -uV | \
|
||||
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.
|
||||
versions=( */ )
|
||||
versions=( "${versions[@]%/}" )
|
||||
|
@ -90,7 +96,7 @@ for version in "${versions[@]}"; do
|
|||
versionPostfix=""
|
||||
if [ "$fullversion_with_extension" != "$fullversion" ]; then
|
||||
versionAliases=( "$fullversion_with_extension" )
|
||||
versionPostfix="-rc"
|
||||
versionPostfix="-$( echo "$fullversion_with_extension" | tr '[:upper:]' '[:lower:]' | grep -oE '(beta|rc)')"
|
||||
fi
|
||||
|
||||
versionAliases+=( "$fullversion$versionPostfix" "${fullversion%.*}$versionPostfix" "${fullversion%.*.*}$versionPostfix" )
|
||||
|
@ -100,6 +106,9 @@ for version in "${versions[@]}"; do
|
|||
if [ "$fullversion_with_extension" = "$latest_rc" ]; then
|
||||
versionAliases+=( "rc" )
|
||||
fi
|
||||
if [ "$fullversion_with_extension" = "$latest_beta" ]; then
|
||||
versionAliases+=( "beta" )
|
||||
fi
|
||||
|
||||
for channel in "${!release_channel[@]}"; do
|
||||
if [ "$fullversion_with_extension" = "${release_channel[$channel]}" ]; then
|
||||
|
|
Loading…
Reference in a new issue