use cached envoy (#2132)

This commit is contained in:
wasaga 2021-04-26 15:58:46 -04:00 committed by GitHub
parent 5767443836
commit 9d0baad136
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,11 @@ hash_sha256() {
fi
}
if [ -f "$_dir/envoy" ]; then
exit 0
fi
mkdir -p "$_dir"
curl -L -o "$_dir/envoy" "https://github.com/pomerium/envoy-binaries/releases/download/v${_envoy_version}/envoy-${_target}"
curl -L --compressed -o "$_dir/envoy" "https://github.com/pomerium/envoy-binaries/releases/download/v${_envoy_version}/envoy-${_target}"
hash_sha256 "$_dir/envoy" >"$_dir/envoy.sha256"