Add go generate script for calculating version number
ci/woodpecker/push/woodpecker Pipeline was successful Details
ci/woodpecker/tag/woodpecker Pipeline was successful Details

pull/39/head v1.0.0
Arsen Musayelyan 3 weeks ago
parent c5fb3e1a33
commit 4a397d4c1e

@ -1,5 +1,6 @@
before:
hooks:
- go generate
- go mod tidy
builds:
- id: itd

@ -39,9 +39,6 @@ import (
var k = koanf.New(".")
//go:embed version.txt
var version string
var (
firmwareUpdating = false
// The FS must be updated when the watch is reconnected

@ -0,0 +1,3 @@
#!/bin/bash
git describe --tags > version.txt

@ -0,0 +1,8 @@
package main
import _ "embed"
//go:generate scripts/gen-version.sh
//go:embed version.txt
var version string
Loading…
Cancel
Save