mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-24 21:48:23 +02:00
Update build and release process for envoy embedding (#699)
This commit is contained in:
parent
dccec1e646
commit
d58f68ab15
7 changed files with 50 additions and 150 deletions
|
@ -1,28 +1,12 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
_script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
|
||||
_dir=/tmp/pomerium-dev-docker
|
||||
mkdir -p "$_dir"
|
||||
|
||||
# build linux binary
|
||||
env GOOS=linux \
|
||||
GOARCH=amd64 \
|
||||
CGO_ENABLED=0 \
|
||||
GO111MODULE=on \
|
||||
go build \
|
||||
-ldflags "-s -w" \
|
||||
-o "$_dir/pomerium" \
|
||||
./cmd/pomerium
|
||||
|
||||
# embed envoy
|
||||
(
|
||||
cd "$_script_dir"
|
||||
env GOOS=linux \
|
||||
GOARCH=amd64 \
|
||||
./embed-envoy.bash \
|
||||
"$_dir/pomerium"
|
||||
)
|
||||
env GOOS=linux make build-deps build
|
||||
cp bin/pomerium $_dir/
|
||||
|
||||
# build docker image
|
||||
(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue