mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-17 18:46:43 +01:00
Make generate-stackbrew-library.sh reproducible
Signed-off-by: Tilo Spannagel <development@tilosp.de>
This commit is contained in:
parent
f86d328c5b
commit
37bc7e9e0f
2 changed files with 7 additions and 5 deletions
|
@ -67,11 +67,7 @@ join() {
|
|||
echo "${out#$sep}"
|
||||
}
|
||||
|
||||
latest=$( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
|
||||
grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}' | \
|
||||
grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}' | \
|
||||
sort -uV | \
|
||||
tail -1 )
|
||||
latest=$( cat latest.txt )
|
||||
|
||||
# Generate each of the tags.
|
||||
versions=( */ )
|
||||
|
|
|
@ -157,6 +157,12 @@ function create_variant() {
|
|||
done
|
||||
}
|
||||
|
||||
curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
|
||||
grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}' | \
|
||||
grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}' | \
|
||||
sort -uV | \
|
||||
tail -1 > latest.txt
|
||||
|
||||
find . -maxdepth 1 -type d -regextype sed -regex '\./[[:digit:]]\+\.[[:digit:]]\+\(-rc\|-beta\|-alpha\)\?' -exec rm -r '{}' \;
|
||||
|
||||
fullversions=( $( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \
|
||||
|
|
Loading…
Reference in a new issue