fix version handling and injection

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
This commit is contained in:
Matthias Bertschy
2026-02-04 10:42:12 +01:00
parent 0841d1d483
commit b97f50ffb5
8 changed files with 55 additions and 50 deletions

View File

@@ -36,8 +36,8 @@ builds:
- amd64
- arm64
ldflags:
- -s -w
- -X "github.com/kubescape/kubescape/v3/core/cautils.Client={{.Env.CLIENT}}"
- "{{.Ldflags}}"
- -X "github.com/kubescape/backend/pkg/versioncheck.Client={{.Env.CLIENT}}"
hooks:
post:
- cmd: >