embed commit and repo in config codegen

This commit is contained in:
Laptop
2024-12-29 21:11:00 +02:00
parent 26dd353985
commit 325bd8dda3
4 changed files with 7 additions and 8 deletions

2
build
View File

@@ -1,3 +1,3 @@
templ generate
go generate ./lib/*
go build -ldflags "-X main.commit=`git rev-parse HEAD | head -c 7` -X main.repo=`git remote get-url origin`" main.go
go build main.go