mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-06 21:04:39 +02:00
scripts: update get-envoy script to download all binaries (#3886)
* scripts: update get-envoy script to download all binaries * run download in parallel * show errors
This commit is contained in:
parent
1e6a483ce9
commit
759a7782b0
1 changed files with 24 additions and 19 deletions
|
@ -7,26 +7,31 @@ export PATH
|
||||||
_project_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/.."
|
_project_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/.."
|
||||||
_envoy_version=1.24.0
|
_envoy_version=1.24.0
|
||||||
_dir="$_project_root/pkg/envoy/files"
|
_dir="$_project_root/pkg/envoy/files"
|
||||||
_target="${TARGET:-"$(go env GOOS)-$(go env GOARCH)"}"
|
|
||||||
|
|
||||||
_url="https://github.com/pomerium/envoy-binaries/releases/download/v${_envoy_version}/envoy-${_target}"
|
for _target in darwin-amd64 darwin-arm64 linux-amd64 linux-arm64; do
|
||||||
|
_url="https://github.com/pomerium/envoy-binaries/releases/download/v${_envoy_version}/envoy-${_target}"
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
--fail \
|
--fail \
|
||||||
--compressed \
|
--show-error \
|
||||||
--location \
|
--compressed \
|
||||||
--time-cond "$_dir/envoy-$_target" \
|
--location \
|
||||||
--output "$_dir/envoy-$_target" \
|
--time-cond "$_dir/envoy-$_target" \
|
||||||
"$_url"
|
--output "$_dir/envoy-$_target" \
|
||||||
|
"$_url" &
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
--silent \
|
--silent \
|
||||||
--fail \
|
--fail \
|
||||||
--compressed \
|
--show-error \
|
||||||
--location \
|
--compressed \
|
||||||
--time-cond "$_dir/envoy-$_target.sha256" \
|
--location \
|
||||||
--output "$_dir/envoy-$_target.sha256" \
|
--time-cond "$_dir/envoy-$_target.sha256" \
|
||||||
"$_url.sha256"
|
--output "$_dir/envoy-$_target.sha256" \
|
||||||
|
"$_url.sha256" &
|
||||||
|
|
||||||
echo "$_envoy_version" >"$_dir/envoy-$_target.version"
|
echo "$_envoy_version" >"$_dir/envoy-$_target.version"
|
||||||
|
done
|
||||||
|
|
||||||
|
wait
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue