mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
feat(build-system): add support for AppVeyor CI (#2449)
This commit is contained in:
parent
2541f4daea
commit
65979709e9
12 changed files with 343 additions and 27 deletions
14
build/build_binary.sh
Executable file
14
build/build_binary.sh
Executable file
|
@ -0,0 +1,14 @@
|
|||
export GOPATH="$APPVEYOR_BUILD_FOLDER/api"
|
||||
binary="portainer"
|
||||
|
||||
mkdir -p dist
|
||||
mkdir -p api/src/github.com/portainer/
|
||||
|
||||
cp -R api/ api/src/github.com/portainer/portainer/
|
||||
|
||||
cd 'api/cmd/portainer'
|
||||
|
||||
go get -t -d -v ./...
|
||||
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s'
|
||||
|
||||
mv "$APPVEYOR_BUILD_FOLDER/api/cmd/portainer/$binary" "$APPVEYOR_BUILD_FOLDER/dist/portainer"
|
Loading…
Add table
Add a link
Reference in a new issue