diff options
author | 2021-09-24 13:14:20 +0200 | |
---|---|---|
committer | 2021-09-24 13:14:20 +0200 | |
commit | d515c9f1ec4df612a24bff77fe57c75744946651 (patch) | |
tree | cf176ecd9ad1f5c3b8ec7fa3b036c163491e737d /scripts/build.sh | |
parent | upstep bun version (#243) (diff) | |
download | gotosocial-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-x | scripts/build.sh | 4 |
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' \ |