mirror of https://github.com/portainer/portainer
Revert "chore(build): remove grunt and add makefile [EE-4824] (#8803)"
This reverts commit 5fd36ee986
.
pull/8976/head
parent
292e525539
commit
86095e1c93
|
@ -1,3 +1,7 @@
|
||||||
|
param (
|
||||||
|
[string]$platform,
|
||||||
|
[string]$arch
|
||||||
|
)
|
||||||
|
|
||||||
$ErrorActionPreference = "Stop";
|
$ErrorActionPreference = "Stop";
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,6 @@
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
DEBUG=${DEBUG:-""}
|
|
||||||
if [ -n "$DEBUG" ]; then
|
|
||||||
set -x
|
|
||||||
fi
|
|
||||||
|
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
||||||
# populate tool versions
|
# populate tool versions
|
||||||
|
@ -27,14 +22,14 @@ go get -t -d -v ./...
|
||||||
|
|
||||||
# the build takes 2 seconds
|
# the build takes 2 seconds
|
||||||
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build \
|
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build \
|
||||||
-trimpath \
|
-trimpath \
|
||||||
--installsuffix cgo \
|
--installsuffix cgo \
|
||||||
--ldflags "-s \
|
--ldflags "-s \
|
||||||
--X 'github.com/portainer/portainer/api/build.BuildNumber=${BUILDNUMBER}' \
|
--X 'github.com/portainer/portainer/api/build.BuildNumber=${BUILDNUMBER}' \
|
||||||
--X 'github.com/portainer/portainer/api/build.ImageTag=${CONTAINER_IMAGE_TAG}' \
|
--X 'github.com/portainer/portainer/api/build.ImageTag=${CONTAINER_IMAGE_TAG}' \
|
||||||
--X 'github.com/portainer/portainer/api/build.NodejsVersion=${NODE_VERSION}' \
|
--X 'github.com/portainer/portainer/api/build.NodejsVersion=${NODE_VERSION}' \
|
||||||
--X 'github.com/portainer/portainer/api/build.YarnVersion=${YARN_VERSION}' \
|
--X 'github.com/portainer/portainer/api/build.YarnVersion=${YARN_VERSION}' \
|
||||||
--X 'github.com/portainer/portainer/api/build.WebpackVersion=${WEBPACK_VERSION}' \
|
--X 'github.com/portainer/portainer/api/build.WebpackVersion=${WEBPACK_VERSION}' \
|
||||||
--X 'github.com/portainer/portainer/api/build.GoVersion=${GO_VERSION}'" \
|
--X 'github.com/portainer/portainer/api/build.GoVersion=${GO_VERSION}'" \
|
||||||
-o "../dist/portainer" \
|
-o "../dist/portainer" \
|
||||||
./cmd/portainer/
|
./cmd/portainer/
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
github.com/PuerkitoBio/purell v1.1.1 h1:WEQqlqaGbrPkxLJWfBwQmfEAE1Z7ONdDLqrN38tNFfI=
|
|
||||||
github.com/PuerkitoBio/urlesc v0.0.0-20170810143723-de5bf2ad4578 h1:d+Bc7a5rLufV/sSk/8dngufqelfh6jnri85riMAaF/M=
|
|
Loading…
Reference in New Issue