mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-29 17:12:22 +00:00
14 lines
281 B
Bash
Executable File
14 lines
281 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -x
|
|
|
|
VERSION=$(cat ./version.txt)
|
|
HASH=$(git rev-parse --short=12 HEAD)
|
|
TIMESTAMP=$(date +%Y%m%d%H%M%S) # Current timestamp
|
|
FULL_VERSION=$VERSION-$TIMESTAMP-$HASH
|
|
|
|
cd src
|
|
go get -d -v
|
|
go build -v -ldflags="-s -w -X main.version=$FULL_VERSION" -o ../databunker
|
|
cd ..
|