Fix immucore fips package and bump it (#530)

This commit is contained in:
Itxaka 2023-10-27 14:09:28 +02:00 committed by GitHub
parent 80ccd1f6fb
commit bdd67edf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -21,10 +21,10 @@ env:
{{if or (eq .Values.category "fips") (eq .Values.category "fips-static")}}
- CGO_ENABLED=1
- GOEXPERIMENT=boringcrypto
- LDFLAGS="-w -X github.com/kairos-io/immucore/internal/version.version=v${PACKAGE_VERSION} {{with .Values.ldflags}}{{.}}{{end}}"
- LDFLAGS="-w -X github.com/kairos-io/immucore/internal/version.version=v${PACKAGE_VERSION}"
{{else}}
- CGO_ENABLED=0
- LDFLAGS="-s -w -X github.com/kairos-io/immucore/internal/version.version=v${PACKAGE_VERSION} {{with .Values.ldflags}}{{.}}{{end}}"
- LDFLAGS="-s -w -X github.com/kairos-io/immucore/internal/version.version=v${PACKAGE_VERSION}"
{{end}}
steps:
- |
@ -32,7 +32,7 @@ steps:
cd go/src/github.com/${GITHUB_ORG}/{{ .Values.name }}/ && git checkout v"${PACKAGE_VERSION}" -b build && go build -o {{ .Values.name }} -ldflags="${LDFLAGS}" && mv {{.Values.name}} /usr/bin/
- chmod +x /usr/bin/{{.Values.name}}
{{if or (eq .Values.category "fips") (eq .Values.category "fips-static")}}
- /usr/bin/{{.Values.name}} version 2>&1 >/dev/null | grep -i boringcrypto
- /usr/bin/{{.Values.name}} version | grep -i boringcrypto
{{end}}
includes:
- /usr/bin/{{.Values.name}}

View File

@ -12,7 +12,7 @@ packages:
description: "The Kairos immutability management interface"
- name: "immucore"
category: "fips"
version: "0.1.5"
version: "0.1.6"
labels:
github.repo: "immucore"
autobump.revdeps: "true"