mirror of
https://github.com/harness-community/drone-nexus-publish.git
synced 2026-06-04 18:23:55 +08:00
19 lines
418 B
Bash
Executable File
19 lines
418 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# force go modules
|
|
export GOPATH=""
|
|
|
|
# disable cgo
|
|
export CGO_ENABLED=0
|
|
|
|
set -e
|
|
set -x
|
|
|
|
# linux
|
|
GOOS=linux GOARCH=amd64 go build -o release/linux/amd64/drone-nexus-publish
|
|
#GOOS=linux GOARCH=arm64 go build -o release/linux/arm64/drone-nexus-publish
|
|
#GOOS=linux GOARCH=arm go build -o release/linux/arm/drone-nexus-publish
|
|
|
|
# windows
|
|
#GOOS=windows go build -o release/windows/amd64/drone-nexus-publish.exe
|