File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function find_envoy_sha_from_tag() {
2222 curl -s https://api.github.com/repos/envoyproxy/envoy/tags | grep " $TAG " -A 4 | grep sha | awk ' {print $2}' | tr -d ' "' | tr -d " ,"
2323}
2424
25+ CURRENT_ENVOY_RELEASE=$( cat envoy_release)
2526ENVOY_VERSION=$( find_envoy_sha_from_tag " $1 " )
2627
2728CURL_OUTPUT=$( curl -s " https://raw.githubusercontent.com/envoyproxy/envoy/$ENVOY_VERSION /api/bazel/repository_locations.bzl" )
@@ -59,7 +60,7 @@ UDPA_SHA=\"$UDPA_SHA\" # $UDPA_DATE
5960"
6061
6162# replace version in EnvoyContainer.java
62- sed -i ' s/\(envoy-dev:\).*\(\");\)/\1 ' " $ENVOY_VERSION " ' \2/g ' ../server/src/test/java/io/envoyproxy/controlplane/server/EnvoyContainer.java
63+ sed -i " s/ $CURRENT_ENVOY_RELEASE / $1 /g " ../server/src/test/java/io/envoyproxy/controlplane/server/EnvoyContainer.java
6364
6465# update tag in envoy_release file
6566echo $1 > envoy_release
You can’t perform that action at this time.
0 commit comments