mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
refactor(build-system): clarify build system usage through yarn (#3140)
* refactor(build-system): clarify build system usage through yarn * refactor(build-system): rename azure devops build scripts
This commit is contained in:
parent
849ff8cf9b
commit
2b48f1e49a
4 changed files with 87 additions and 82 deletions
15
build/build_binary_azuredevops.sh
Executable file
15
build/build_binary_azuredevops.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
export GOPATH="/tmp/go"
|
||||
|
||||
binary="portainer"
|
||||
|
||||
mkdir -p dist
|
||||
mkdir -p ${GOPATH}/src/github.com/portainer/portainer
|
||||
|
||||
cp -R api ${GOPATH}/src/github.com/portainer/portainer/api
|
||||
|
||||
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