Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add luet-cosign/cosign to toolchain packages #817

Merged
merged 1 commit into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions packages/toolchain/cosign/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
requires:
- name: "golang"
category: "build"
version: ">=0"
env:
{{ template "golang_env" }}
{{if .Values.fips}}
- CGO_ENABLED=1
{{ else }}
- CGO_ENABLED=0
- LDFLAGS="-s -w"
{{ end }}

prelude:
{{ template "golang_deps" .}}
{{ $opts:= dict "version" (printf "v%s" .Values.version) "org" ( index .Values.labels "github.owner" ) "repo" ( index .Values.labels "github.repo" ) }}
{{ template "golang_download_package" $opts}}
steps:
- |
PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd /luetbuild/go/src/github.com/{{ ( index .Values.labels "github.owner" ) }}/{{.Values.name}} && \
make {{.Values.name}} && mv {{.Values.name}} /usr/bin/{{.Values.name}}
{{ if .Values.fips }}
# Check that we build with fips
- go tool nm /usr/bin/{{.Values.name}} | grep '_Cfunc__goboringcrypto_' 1> /dev/null
{{ end }}

includes:
- /usr/bin/{{.Values.name}}
8 changes: 8 additions & 0 deletions packages/toolchain/cosign/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "cosign"
category: "toolchain"
version: 1.2.1
labels:
github.repo: "cosign"
github.owner: "sigstore"
autobump.revdeps: "true"
autobump.revbump_related: "system/cos recovery/cos recovery/cos-img recovery/cos-squash"
27 changes: 27 additions & 0 deletions packages/toolchain/luet-cosign/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
requires:
- name: "golang"
category: "build"
version: ">=0"
- name: "cosign"
category: "toolchain"
version: ">=0"

env:
- PATH=$PATH:/usr/local/go/bin
- GOPATH=/luetbuild/go
- GO111MODULE=on
- CGO_ENABLED=0
- LDFLAGS="-s -w"

prelude:
{{ template "golang_deps" .}}
{{ $opts:= dict "version" (printf "v%s" .Values.version) "org" ( index .Values.labels "github.owner" ) "repo" ( index .Values.labels "github.repo" ) }}
{{ template "golang_download_package" $opts}}
steps:
- |
PACKAGE_VERSION=${PACKAGE_VERSION%\-*} && \
cd /luetbuild/go/src/github.com/{{ ( index .Values.labels "github.owner" ) }}/{{.Values.name}} && \
make build && \
mv bin/{{.Values.name}} /usr/bin/{{.Values.name}}
includes:
- /usr/bin/{{.Values.name}}
8 changes: 8 additions & 0 deletions packages/toolchain/luet-cosign/definition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: "luet-cosign"
category: "toolchain"
version: 0.0.5
labels:
github.repo: "luet-cosign"
github.owner: "rancher-sandbox"
autobump.revdeps: "true"
autobump.revbump_related: "system/cos recovery/cos recovery/cos-img recovery/cos-squash"