mirror of
https://github.com/pomerium/pomerium.git
synced 2025-05-23 14:07:11 +02:00
core/envoy: add command to download envoy binaries (#5133)
* core/envoy: add command to download envoy binaries * use internal log * remove original get-envoy script
This commit is contained in:
parent
8d206e0087
commit
7eca911292
4 changed files with 137 additions and 44 deletions
|
@ -1,37 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
PATH="$PATH:$(go env GOPATH)/bin"
|
||||
export PATH
|
||||
|
||||
_project_root="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/.."
|
||||
_envoy_version=1.30.2
|
||||
_dir="$_project_root/pkg/envoy/files"
|
||||
|
||||
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 \
|
||||
--silent \
|
||||
--fail \
|
||||
--show-error \
|
||||
--compressed \
|
||||
--location \
|
||||
--time-cond "$_dir/envoy-$_target" \
|
||||
--output "$_dir/envoy-$_target" \
|
||||
"$_url" &
|
||||
|
||||
curl \
|
||||
--silent \
|
||||
--fail \
|
||||
--show-error \
|
||||
--compressed \
|
||||
--location \
|
||||
--time-cond "$_dir/envoy-$_target.sha256" \
|
||||
--output "$_dir/envoy-$_target.sha256" \
|
||||
"$_url.sha256" &
|
||||
|
||||
echo "$_envoy_version" >"$_dir/envoy-$_target.version"
|
||||
done
|
||||
|
||||
wait
|
Loading…
Add table
Add a link
Reference in a new issue