summaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-24 13:14:20 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-24 13:14:20 +0200
commitd515c9f1ec4df612a24bff77fe57c75744946651 (patch)
treecf176ecd9ad1f5c3b8ec7fa3b036c163491e737d /scripts/build.sh
parentupstep bun version (#243) (diff)
downloadgotosocial-d515c9f1ec4df612a24bff77fe57c75744946651.tar.xz
Goreleaser (#241)
* add goreleaser tooling * add files + hook * update hooks * allow passing build-dir using cli args * build tweaks * tweak more * update drone and goreleaser * chill out tests * remove postgres * docker push on snapshot * update releaser
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 65b258cba..565435a69 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -2,8 +2,8 @@
set -eu
-COMMIT=$(git rev-list -1 HEAD)
-VERSION=$(cat ./version)
+COMMIT="${COMMIT:-12345678}"
+VERSION="${VERSION:-0.0.0}"
CGO_ENABLED=0 go build -trimpath \
-tags 'netgo osusergo static_build' \