mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 00:10:45 +02:00
dev build support for darwin-arm64 from envoy tip (#2815)
This commit is contained in:
parent
5a858f5d48
commit
993da5704b
5 changed files with 25 additions and 11 deletions
|
@ -9,9 +9,12 @@ _envoy_version=1.19.1
|
|||
_dir="$_project_root/internal/envoy/files"
|
||||
_target="${TARGET:-"$(go env GOOS)-$(go env GOARCH)"}"
|
||||
|
||||
# until m1 macs are supported, fallback to x86 and use rosetta
|
||||
if [ "$_target" == "darwin-arm64" ]; then
|
||||
_target="darwin-amd64"
|
||||
echo "Using local envoy distribution for Apple M1"
|
||||
cp `which envoy` "$_dir/envoy-$_target"
|
||||
(cd internal/envoy/files && sha256sum "$_dir/envoy-$_target" > "$_dir/envoy-$_target.sha256")
|
||||
echo "1.21.0-dev" >"$_dir/envoy-$_target.version"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
_url="https://github.com/pomerium/envoy-binaries/releases/download/v${_envoy_version}/envoy-${_target}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue