mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-23 16:54:01 +01: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
|