Skip to content

Commit

Permalink
Add luet-cosign to toolchain packages
Browse files Browse the repository at this point in the history
Signed-off-by: Itxaka <igarcia@suse.com>
  • Loading branch information
Itxaka committed Oct 26, 2021
1 parent 356aa6c commit 7ec2931
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/toolchain/luet-cosign/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
requires:
- name: "golang"
category: "build"
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" ) }}/luet-cosign && make build && mv bin/luet-cosign /usr/bin/luet-cosign
includes:
- /usr/bin/luet-cosign
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"

0 comments on commit 7ec2931

Please sign in to comment.