10 lines
277 B
Bash
Executable File
10 lines
277 B
Bash
Executable File
#!/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
|