File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ for version in "${versions[@]}"; do
2020 downloadUrl=" $( echo " $line " | cut -d' ' -f5 | sed ' s/[\/&]/\\&/g' ) "
2121 shaHash=" $( echo " $line " | cut -d' ' -f4) "
2222 [ " $( echo " $line " | cut -d' ' -f3) " = ' sha1' ]
23-
23+
2424 (
2525 set -x
2626 sed -ri '
@@ -34,6 +34,21 @@ for version in "${versions[@]}"; do
3434 travisEnv=' \n - VERSION=' " $version VARIANT=$variant$travisEnv "
3535 done
3636 travisEnv=' \n - VERSION=' " $version VARIANT=$travisEnv "
37+
38+ windowsVersion=" $(
39+ git ls-remote --tags ' https://github.com/MSOpenTech/redis.git' \
40+ | cut -d/ -f3 \
41+ | grep -E " ^win-${version} [.]" \
42+ | cut -d- -f2- \
43+ | sort -rV \
44+ | head -n1
45+ ) "
46+ (
47+ set -x
48+ sed -ri \
49+ -e ' s!^(ENV REDIS_VERSION) .*!\1 ' " $windowsVersion " ' !' \
50+ " $version " /windows/* /Dockerfile
51+ )
3752done
3853
3954travis=" $( awk -v ' RS=\n\n' ' $1 == "env:" { $0 = "env:' " $travisEnv " ' " } { printf "%s%s", $0, RS }' .travis.yml) "
You can’t perform that action at this time.
0 commit comments