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:
parent
31c6487e4f
commit
8198762ec5
8 changed files with 290 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue