mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 02:54:20 +00:00
11 lines
297 B
Bash
11 lines
297 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e
|
||
|
|
||
|
VERSION=${1}
|
||
|
if [ "${VERSION}" == "" ]; then
|
||
|
VERSION="$(git rev-parse --abbrev-ref HEAD | sed -e 's/heads\///')"
|
||
|
fi
|
||
|
|
||
|
echo -n "-extldflags -static -X main.Version=${VERSION} -X main.githubClientID=${GITHUBOAUTHCLIENTID} -X main.githubClientSecret=${GITHUBOAUTHCLIENTSECRET}"
|