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
|
@ -41,4 +41,4 @@ exclude_patterns:
|
||||||
- api/
|
- api/
|
||||||
- "!app/kubernetes/**"
|
- "!app/kubernetes/**"
|
||||||
- .github/
|
- .github/
|
||||||
- .tmp/
|
- .tmp/
|
||||||
|
|
|
@ -49,4 +49,4 @@ jobs:
|
||||||
# OAS3.0 however does support multiple body params - hence its best to convert the generated OAS 2.0
|
# OAS3.0 however does support multiple body params - hence its best to convert the generated OAS 2.0
|
||||||
# to OAS 3.0 and validate the output of generated OAS 3.0 instead.
|
# to OAS 3.0 and validate the output of generated OAS 3.0 instead.
|
||||||
- name: Convert OpenAPI 2.0 to OpenAPI 3.0 and validate spec
|
- name: Convert OpenAPI 2.0 to OpenAPI 3.0 and validate spec
|
||||||
run: yarn validate:docs
|
run: yarn validate:docs
|
||||||
|
|
2
build.sh
2
build.sh
|
@ -45,4 +45,4 @@ else
|
||||||
build_all 'linux-amd64 linux-arm linux-arm64 linux-ppc64le linux-s390x darwin-amd64 windows-amd64'
|
build_all 'linux-amd64 linux-arm linux-arm64 linux-ppc64le linux-s390x darwin-amd64 windows-amd64'
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -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