File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ case "${LOCAL_ARCH}" in
61
61
;;
62
62
esac
63
63
64
- NAME=" dubbo-$DUBBO_VERSION "
65
- URL=" https://github.com/apache/dubbo-kubernetes/releases/download/${DUBBO_VERSION} /dubbo-${DUBBO_VERSION} -${OSEXT} .tar.gz"
66
- ARCH_URL=" https://github.com/apache/dubbo-kubernetes/releases/download/${DUBBO_VERSION} /dubbo-${DUBBO_VERSION} -${OSEXT} -${DUBBO_ARCH} .tar.gz"
64
+ NAME=" dubbo-cp- $DUBBO_VERSION "
65
+ URL=" https://github.com/apache/dubbo-kubernetes/releases/download/${DUBBO_VERSION} /dubbo-cp -${DUBBO_VERSION} -${OSEXT} .tar.gz"
66
+ ARCH_URL=" https://github.com/apache/dubbo-kubernetes/releases/download/${DUBBO_VERSION} /dubbo-cp -${DUBBO_VERSION} -${OSEXT} -${DUBBO_ARCH} .tar.gz"
67
67
68
68
69
69
with_arch () {
@@ -72,7 +72,7 @@ with_arch() {
72
72
printf " \n%s is not found, please specify a valid DUBBO_VERSION and TARGET_ARCH\n" " $ARCH_URL "
73
73
exit 1
74
74
fi
75
- filename=" dubbo-${DUBBO_VERSION} -${OSEXT} -${DUBBO_ARCH} .tar.gz"
75
+ filename=" dubbo-cp- ${DUBBO_VERSION} -${OSEXT} -${DUBBO_ARCH} .tar.gz"
76
76
tar -xzf " ${filename} "
77
77
rm " ${filename} "
78
78
}
@@ -84,7 +84,7 @@ without_arch() {
84
84
exit 1
85
85
fi
86
86
curl -fsLO " $URL "
87
- filename=" dubbo-${DUBBO_VERSION} -${OSEXT} .tar.gz"
87
+ filename=" dubbo-cp- ${DUBBO_VERSION} -${OSEXT} .tar.gz"
88
88
tar -xzf " ${filename} "
89
89
rm " ${filename} "
90
90
}
Original file line number Diff line number Diff line change 27
27
28
28
# Determine the latest Dubboctl version by version number ignoring alpha, beta, and rc versions.
29
29
if [ " ${DUBBO_VERSION} " = " " ] ; then
30
- DUBBO_VERSION=" $( curl -sL https://github.com/apache/dubbo-kubernetes/releases | \
31
- grep -E -o ' dubboctl/([v,V]?)[0-9]*.[0-9]*.[0-9]*' | sort -V | \
32
- tail -1 | awk -F' /' ' { print $2}' ) "
33
- DUBBO_VERSION=" ${DUBBOCTL_VERSION##*/ } "
30
+ DUBBO_VERSION=" $( curl -s https://api.github.com/repos/apache/dubbo-kubernetes/releases | \
31
+ grep ' "tag_name":' | \
32
+ grep -vE ' (alpha|beta|rc)' | \
33
+ head -1 | \
34
+ sed -E ' s/.*"([^"]+)".*/\1/' ) "
35
+ DUBBO_VERSION=" ${DUBBO_VERSION##*/ } "
34
36
fi
35
37
36
38
if [ " ${DUBBOCTL_VERSION} " = " " ] ; then
37
- printf " Unable to get latest Dubboctl version. Set DUBBOCTL_VERSION env var and re-run. For example: export DUBBOCTL_VERSION=0.0.1 \n"
39
+ printf " Unable to get latest Dubboctl version. Set DUBBOCTL_VERSION env var and re-run. For example: export DUBBOCTL_VERSION=0.1.0 \n"
38
40
exit 1;
39
41
fi
40
42
You can’t perform that action at this time.
0 commit comments