move scripts, allow testing both dbs with one cmd

This commit is contained in:
tsmethurst 2021-09-10 15:59:12 +02:00
commit 5510a39cf3
13 changed files with 263 additions and 99 deletions

11
scripts/build.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -eu
COMMIT=$(git rev-list -1 HEAD)
VERSION=$(cat ./version)
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