mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-27 15:08:14 +02:00
remove original get-envoy script
This commit is contained in:
parent
5119df3d32
commit
dfe09966ce
3 changed files with 2 additions and 44 deletions
7
.github/goreleaser.yaml
vendored
7
.github/goreleaser.yaml
vendored
|
@ -14,6 +14,7 @@ env:
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
- go mod download
|
- go mod download
|
||||||
|
- make get-envoy
|
||||||
- make build-deps
|
- make build-deps
|
||||||
- make yarn
|
- make yarn
|
||||||
- make build-ui
|
- make build-ui
|
||||||
|
@ -37,12 +38,6 @@ builds:
|
||||||
- -X github.com/pomerium/pomerium/internal/version.ProjectName=pomerium
|
- -X github.com/pomerium/pomerium/internal/version.ProjectName=pomerium
|
||||||
- -X github.com/pomerium/pomerium/internal/version.ProjectURL=https://wwww.pomerium.io
|
- -X github.com/pomerium/pomerium/internal/version.ProjectURL=https://wwww.pomerium.io
|
||||||
|
|
||||||
hooks:
|
|
||||||
pre:
|
|
||||||
- cmd: ./scripts/get-envoy.bash
|
|
||||||
env:
|
|
||||||
- TARGET={{ .Os }}-{{ .Arch }}
|
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
|
||||||
id: pomerium
|
id: pomerium
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -40,7 +40,7 @@ all: clean build-deps test lint build ## Runs a clean, build, fmt, lint, test, a
|
||||||
.PHONY: get-envoy
|
.PHONY: get-envoy
|
||||||
get-envoy: ## Fetch envoy binaries
|
get-envoy: ## Fetch envoy binaries
|
||||||
@echo "==> $@"
|
@echo "==> $@"
|
||||||
@./scripts/get-envoy.bash
|
@cd pkg/envoy/files && go run ../get-envoy
|
||||||
|
|
||||||
.PHONY: deps-build
|
.PHONY: deps-build
|
||||||
deps-build: get-envoy ## Install build dependencies
|
deps-build: get-envoy ## Install build dependencies
|
||||||
|
|
|
@ -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.1
|
|
||||||
_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