remove build.

This commit is contained in:
Miroslav Šedivý 2020-11-27 21:51:55 +01:00
parent 1ffae72bf1
commit 194836918e

10
build
View File

@ -1,10 +0,0 @@
#!/bin/bash
set -ex
BUILD_TIME=`date -u +'%Y-%m-%dT%H:%M:%SZ'`
GIT_COMMIT=`git rev-parse --short HEAD`
GIT_BRANCH=`git rev-parse --symbolic-full-name --abbrev-ref HEAD`
GIT_DIRTY=`git diff-index --quiet HEAD -- || echo "✗-"`
go build -o bin/neko -ldflags "-s -X 'demodesk/neko.buildDate=${BUILD_TIME}' -X 'demodesk/neko.gitCommit=${GIT_DIRTY}${GIT_COMMIT}' -X 'demodesk/neko.gitBranch=${GIT_BRANCH}'" -i cmd/neko/main.go