mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-10 19:21:51 +00:00
d515c9f1ec
* 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
11 lines
334 B
Bash
Executable file
11 lines
334 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
COMMIT="${COMMIT:-12345678}"
|
|
VERSION="${VERSION:-0.0.0}"
|
|
|
|
CGO_ENABLED=0 go build -trimpath \
|
|
-tags 'netgo osusergo static_build' \
|
|
-ldflags="-s -w -extldflags '-static' -X 'main.Commit=${COMMIT}' -X 'main.Version=${VERSION}'" \
|
|
./cmd/gotosocial
|