mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-14 14:15:09 +00:00
Add immucore package (#108)
This commit is contained in:
parent
c4e4cd0c49
commit
1fe01c138e
18
packages/system/dracut/immucore/build.yaml
Normal file
18
packages/system/dracut/immucore/build.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
image: "alpine"
|
||||
|
||||
prelude:
|
||||
- apk add git
|
||||
- |
|
||||
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
|
||||
git clone https://github.com/${GITHUB_ORG}/{{ .Values.name }}.git && cd {{.Values.name}} && git checkout v"${PACKAGE_VERSION}"
|
||||
|
||||
steps:
|
||||
- mkdir -p /package/usr/lib/dracut/modules.d
|
||||
- mkdir -p /package/etc/dracut.conf.d/
|
||||
- cp -r {{.Values.name}}/dracut/28immucore /package/usr/lib/dracut/modules.d/28immucore
|
||||
- cp {{.Values.name}}/dracut/dracut.conf /package/etc/dracut.conf.d/10-immucore.conf
|
||||
|
||||
env:
|
||||
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
||||
|
||||
package_dir: "/package"
|
11
packages/system/dracut/immucore/definition.yaml
Normal file
11
packages/system/dracut/immucore/definition.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
name: "immucore"
|
||||
category: "dracut"
|
||||
version: "0.0.1"
|
||||
labels:
|
||||
github.repo: "immucore"
|
||||
autobump.revdeps: "true"
|
||||
github.owner: "kairos-io"
|
||||
uri:
|
||||
- https://github.com/kairos-io/kcrypt
|
||||
license: "Apache License v2"
|
||||
description: "Dracut module for immucore"
|
19
packages/system/immucore/build.yaml
Normal file
19
packages/system/immucore/build.yaml
Normal file
@ -0,0 +1,19 @@
|
||||
requires:
|
||||
- name: "toolchain-go"
|
||||
category: "development"
|
||||
version: ">=0"
|
||||
prelude:
|
||||
- mkdir go/src/github.com/${GITHUB_ORG}/ -p
|
||||
- cd go/src/github.com/${GITHUB_ORG}/ && git clone https://github.com/${GITHUB_ORG}/{{ .Values.name }}.git
|
||||
env:
|
||||
- GOPATH=/luetbuild/go/
|
||||
- GITHUB_ORG={{ ( index .Values.labels "github.owner" ) }}
|
||||
- CGO_ENABLED=0
|
||||
- LDFLAGS="-s -w -X github.com/kairos-io/immucore/internal/version.Version=v${PACKAGE_VERSION}"
|
||||
steps:
|
||||
- |
|
||||
PACKAGE_VERSION=${PACKAGE_VERSION%\+*} && \
|
||||
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}}
|
||||
includes:
|
||||
- /usr/bin/{{.Values.name}}
|
11
packages/system/immucore/definition.yaml
Normal file
11
packages/system/immucore/definition.yaml
Normal file
@ -0,0 +1,11 @@
|
||||
name: "immucore"
|
||||
category: "system"
|
||||
version: "0.0.1"
|
||||
labels:
|
||||
github.repo: "immucore"
|
||||
autobump.revdeps: "true"
|
||||
github.owner: "kairos-io"
|
||||
uri:
|
||||
- https://github.com/kairos-io/immucore
|
||||
license: "Apache License v2"
|
||||
description: "The Kairos immutability management interface"
|
Loading…
Reference in New Issue
Block a user