* feat(build): introduce buildx * feat(build): excluded compose v3 * feat(build): excluded compose v3 * feat(build): revert back the Docker binary for Windows * * fix liblicense url override Co-authored-by: yi-portainer <yi.chen@portainer.io>
9 lines
281 B
Bash
Executable File
9 lines
281 B
Bash
Executable File
binary="portainer"
|
|
mkdir -p dist
|
|
|
|
cd 'api/cmd/portainer'
|
|
|
|
go get -t -d -v ./...
|
|
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s -X github.com/portainer/liblicense.LicenseServerBaseURL=https://api.portainer.io'
|
|
|
|
mv "${binary}" "../../../dist/portainer" |