mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-23 10:42:12 +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
12 lines
334 B
Bash
Executable file
12 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
|