This repository has been archived on 2021-09-02. You can view files and clone it, but cannot push or open issues or pull requests.
2018-10-26 12:34:01 +02:00
|
|
|
VERSION=1.0
|
2018-10-25 22:32:22 +02:00
|
|
|
GO111MODULE=on
|
2018-10-26 12:34:01 +02:00
|
|
|
CGO_ENABLED=0
|
|
|
|
GOOS=linux
|
|
|
|
GOARCH=amd64
|
|
|
|
|
|
|
|
echo "Fetching dependencies"
|
2018-10-25 22:32:22 +02:00
|
|
|
go get ./...
|
2018-10-26 12:34:01 +02:00
|
|
|
echo "Building project"
|
2018-10-27 00:10:08 +02:00
|
|
|
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} .
|
2018-10-26 12:34:01 +02:00
|
|
|
echo "Done"
|