fix: update post-build hook to conditionally execute script for amd64 architecture

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
This commit is contained in:
Matthias Bertschy
2025-12-12 14:56:03 +01:00
parent 89478eabcc
commit 1f8de23a65

View File

@@ -38,7 +38,10 @@ builds:
- -X "github.com/kubescape/kubescape/v3/core/cautils.Client={{.Env.CLIENT}}"
hooks:
post:
- "/bin/sh -lc 'sh build/goreleaser-post-e2e.sh'"
- cmd: >
{{ if eq .Arch "amd64" }}
/bin/sh -lc 'sh build/goreleaser-post-e2e.sh'
{{ end }}
- id: downloader
dir: downloader
binary: downloader