0
0
Fork 0
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:
Tilo Spannagel 2020-03-12 00:53:13 +01:00
parent f86d328c5b
commit 37bc7e9e0f
2 changed files with 7 additions and 5 deletions

View file

@ -67,11 +67,7 @@ join() {
echo "${out#$sep}" echo "${out#$sep}"
} }
latest=$( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \ latest=$( cat latest.txt )
grep -oE 'nextcloud-[[:digit:]]+(\.[[:digit:]]+){2}' | \
grep -oE '[[:digit:]]+(\.[[:digit:]]+){2}' | \
sort -uV | \
tail -1 )
# Generate each of the tags. # Generate each of the tags.
versions=( */ ) versions=( */ )

View file

@ -157,6 +157,12 @@ function create_variant() {
done 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 '{}' \; 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| \ fullversions=( $( curl -fsSL 'https://download.nextcloud.com/server/releases/' |tac|tac| \