mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
feat(build-system): introduce Azure DevOps support (#2666)
This commit is contained in:
parent
fca4f619b5
commit
576f369152
8 changed files with 127 additions and 120 deletions
15
build/build_binary_devops.sh
Executable file
15
build/build_binary_devops.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
export GOPATH="$BUILD_SOURCESDIRECTORY/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 "$BUILD_SOURCESDIRECTORY/api/cmd/portainer/$binary" "$BUILD_SOURCESDIRECTORY/dist/portainer"
|
Loading…
Add table
Add a link
Reference in a new issue