Implemented basic functionality.
This commit is contained in:
9
build.sh
Executable file
9
build.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
# Build script for lab-ca with version injection from git tag
|
||||
git describe --tags --always --dirty > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
VERSION=$(git describe --tags --always --dirty)
|
||||
else
|
||||
VERSION="dev"
|
||||
fi
|
||||
go build -ldflags "-X main.Version=$VERSION" -o lab-ca
|
Reference in New Issue
Block a user