mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-06-03 01:44:53 +00:00
On build, check fips binary for confirmation (#761)
This commit is contained in:
parent
af8c24846c
commit
db0f21164e
@ -23,6 +23,9 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
binary: '{{ .ProjectName }}'
|
binary: '{{ .ProjectName }}'
|
||||||
id: fips-amd64
|
id: fips-amd64
|
||||||
|
hooks:
|
||||||
|
post:
|
||||||
|
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
|
||||||
- ldflags:
|
- ldflags:
|
||||||
- -w -s -X "github.com/kairos-io/kairos-agent/v2/internal/common.VERSION={{.Tag}}" -X "github.com/kairos-io/kairos-agent/v2/internal/common.gitCommit={{.Commit}}"
|
- -w -s -X "github.com/kairos-io/kairos-agent/v2/internal/common.VERSION={{.Tag}}" -X "github.com/kairos-io/kairos-agent/v2/internal/common.gitCommit={{.Commit}}"
|
||||||
env:
|
env:
|
||||||
@ -35,6 +38,9 @@ builds:
|
|||||||
- arm64
|
- arm64
|
||||||
binary: '{{ .ProjectName }}'
|
binary: '{{ .ProjectName }}'
|
||||||
id: fips-arm64
|
id: fips-arm64
|
||||||
|
hooks:
|
||||||
|
post:
|
||||||
|
- bash -c 'set -e; go version {{.Path}} | grep boringcrypto || (echo "boringcrypto not found" && exit 1)'
|
||||||
source:
|
source:
|
||||||
enabled: true
|
enabled: true
|
||||||
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
|
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
|
||||||
|
Loading…
Reference in New Issue
Block a user