aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 1320fdf..21f46a5 100755
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,7 @@ LICENSE="$(cat LICENSE)"
version="$(git log --format="%h %d" -1)
Source code can be found here:
-https://git.riedstra.us/mitch/go-website.git
+https://git.riedstra.dev/mitch/go-website
$LICENSE"
@@ -13,4 +13,6 @@ if ! git diff-index --quiet HEAD ; then
version="dirty: $version"
fi
+export CGO_ENABLED=0
+
go build -ldflags="-X 'main.VersionString=$version'" ./cmd/server