0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-25 12:50:54 +02:00

Use the downloads index to get the version numbers

This commit is contained in:
Tilo Spannagel 2017-06-03 13:56:18 +02:00
parent 31c6487e4f
commit 8198762ec5
No known key found for this signature in database
GPG key ID: B89F1626A58E1429
8 changed files with 290 additions and 3 deletions

View file

@ -11,9 +11,10 @@ function version_greater_or_equal() {
[[ "$(printf '%s\n' "$@" | sort -V | head -n 1)" != "$1" || "$1" == "$2" ]];
}
latests=( $(curl -sSL 'https://nextcloud.com/changelog/' |tac|tac| \
grep -o "\(Version\|Release\)\s\+[[:digit:]]\+\(\.[[:digit:]]\+\)\+" | \
awk '{ print $2 }' | sort -V ) )
latests=( $(curl -sSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
grep -oE '>nextcloud-[[:digit:]]+(.[[:digit:]]+)+\.tar\.bz2<' | \
grep -oE '[[:digit:]]+(.[[:digit:]]+)+' | \
sort -V ) )
travisEnv=
for latest in "${latests[@]}"; do