1a9ed2b37a
cleanup wrong dependency in go.mod
13 lines
327 B
Bash
13 lines
327 B
Bash
VERSION=1.0
|
|
GO111MODULE=on
|
|
CGO_ENABLED=0
|
|
GOOS=linux
|
|
GOARCH=amd64
|
|
|
|
echo "Fetching dependencies"
|
|
go get ./...
|
|
echo "Building project"
|
|
mkdir -p builds
|
|
go build -o ./builds/hetzner-sb-notifier_${GOOS}_${GOARCH}_${VERSION} .
|
|
#go build -a -installsuffix cgo -o ./builds/hetzner-sb-notifier_${GOOS}_${GOARCH}_${VERSION} .
|
|
echo "Done"
|