aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 1bccbf42a704cf78e17b0b431a778f4cd80669ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env sh

if [ -z "${GOBIN}" ]; then
    GOBIN=go
fi

cd "$(dirname ${0})"

export GO111MODULE=on

set -e
set -x

${GOBIN} mod download
${GOBIN} build -ldflags='-s -w' -tags='sqlite pam' -o gogs