mirror of
https://github.com/wearepixel/pulsewise-collector.git
synced 2026-11-14 14:01:50 +00:00
- Add VERSION file as canonical version source - build.sh reads VERSION file automatically, injects via -ldflags - deploy.sh prompts for major/minor/patch bump, injects version via ldflags into all 4 builds, and writes release/latest JSON file - Add 'pulsewise-collector version' — prints version and checks for update - Add 'pulsewise-collector update' — fetches and applies the latest release - Default version changed to "dev" for local builds without ldflags
8 lines
178 B
Bash
Executable File
8 lines
178 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
VERSION="${VERSION:-$(cat VERSION)}"
|
|
|
|
go build -ldflags "-X main.version=${VERSION}" -o pulsewise-collector .
|
|
echo "Built: pulsewise-collector (v${VERSION})"
|