mirror of
https://github.com/friendica/docker
synced 2025-02-06 03:29:42 +01:00
FollowUp #258
This change should prevent rebuiling folders for dev and rc versions from versions smaller than latest stable version.
This commit is contained in:
parent
178cda54a6
commit
72fe4d9a33
1 changed files with 4 additions and 3 deletions
|
@ -165,11 +165,12 @@ function create_variant() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# latest, stable version (just save the major version, not every hotfix)
|
# latest, stable version (just save the major version, not every hotfix)
|
||||||
curl -fsSL 'https://files.friendi.ca/' |tac|tac| \
|
latest_version=( $(curl -fsSL 'https://files.friendi.ca/' |tac|tac| \
|
||||||
grep -oE 'friendica-full-[[:digit:]]+\.[[:digit:]]+(\-[[:digit:]]+){0,1}\.tar\.gz' | \
|
grep -oE 'friendica-full-[[:digit:]]+\.[[:digit:]]+(\-[[:digit:]]+){0,1}\.tar\.gz' | \
|
||||||
grep -oE '[[:digit:]]+\.[[:digit:]]+' | \
|
grep -oE '[[:digit:]]+\.[[:digit:]]+' | \
|
||||||
sort -uV | \
|
sort -uV | \
|
||||||
tail -1 > latest.txt
|
tail -1) )
|
||||||
|
echo $latest_version > latest.txt
|
||||||
|
|
||||||
curl -fsSl 'https://raw.githubusercontent.com/friendica/friendica/develop/VERSION' > develop.txt
|
curl -fsSl 'https://raw.githubusercontent.com/friendica/friendica/develop/VERSION' > develop.txt
|
||||||
|
|
||||||
|
@ -200,7 +201,7 @@ githubversions_rc=( $( git ls-remote --heads -q 'https://github.com/friendica/fr
|
||||||
sort -urV ) )
|
sort -urV ) )
|
||||||
versions_rc=( $( printf '%s\n' "${githubversions_rc[@]}" | cut -d. -f1-2 | sort -urV ) )
|
versions_rc=( $( printf '%s\n' "${githubversions_rc[@]}" | cut -d. -f1-2 | sort -urV ) )
|
||||||
for version in "${versions_rc[@]}"; do
|
for version in "${versions_rc[@]}"; do
|
||||||
if version_greater_or_equal "$version" "$min_version"; then
|
if version_greater_or_equal "$version" "$latest_version"; then
|
||||||
for variant in "${variants[@]}"; do
|
for variant in "${variants[@]}"; do
|
||||||
|
|
||||||
create_variant "$version"
|
create_variant "$version"
|
||||||
|
|
Loading…
Reference in a new issue