mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-28 13:50:53 +02:00
Add image for alpha
Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
parent
c98481a388
commit
b7e9458648
2 changed files with 26 additions and 19 deletions
|
@ -73,18 +73,6 @@ latest=$( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac|
|
|||
sort -uV | \
|
||||
tail -1 )
|
||||
|
||||
latest_rc=$( curl -fsSL 'https://download.nextcloud.com/server/prereleases/' |tac|tac| \
|
||||
grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}RC[[:digit:]]+' | \
|
||||
grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}RC[[:digit:]]+' | \
|
||||
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[@]%/}" )
|
||||
|
@ -102,19 +90,13 @@ for version in "${versions[@]}"; do
|
|||
versionPostfix=""
|
||||
if [ "$fullversion_with_extension" != "$fullversion" ]; then
|
||||
versionAliases=( "$fullversion_with_extension" )
|
||||
versionPostfix="-$( echo "$fullversion_with_extension" | tr '[:upper:]' '[:lower:]' | grep -oE '(beta|rc)')"
|
||||
versionPostfix="-$( echo "$fullversion_with_extension" | tr '[:upper:]' '[:lower:]' | grep -oE '(beta|rc|alpha)')"
|
||||
fi
|
||||
|
||||
versionAliases+=( "$fullversion$versionPostfix" "${fullversion%.*}$versionPostfix" "${fullversion%.*.*}$versionPostfix" )
|
||||
if [ "$fullversion_with_extension" = "$latest" ]; then
|
||||
versionAliases+=( "latest" )
|
||||
fi
|
||||
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…
Add table
Add a link
Reference in a new issue