mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2024-11-27 06:40:32 +00:00
03d7c75ebf
* linting with new golangci-lint version * update go to 1.18 * bump versions in drone.yml * use new runtime/debug package for version info * remove Commit build flag from goreleaser * remove mock commit + version from build script * go fmt * add dummy version env flag to test container * install git in golang container for testing * only set versionString if Version is defined
8 lines
284 B
Bash
Executable file
8 lines
284 B
Bash
Executable file
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
CGO_ENABLED=0 go build -trimpath \
|
|
-tags 'netgo osusergo static_build' \
|
|
-ldflags="-s -w -extldflags '-static' -X 'main.Version=${VERSION:-$(git describe --tags --abbrev=0)}'" \
|
|
./cmd/gotosocial
|