mirror of
https://github.com/siderolabs/extensions.git
synced 2026-05-05 12:16:46 +02:00
47 lines
1.8 KiB
YAML
47 lines
1.8 KiB
YAML
name: crun
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
dependencies:
|
|
- stage: base
|
|
steps:
|
|
- sources:
|
|
# {{ if eq .ARCH "aarch64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
|
|
- url: https://github.com/containers/crun/releases/download/{{ .CRUN_VERSION }}/crun-{{ .CRUN_VERSION }}-linux-arm64-disable-systemd
|
|
destination: crun
|
|
sha256: {{ .CRUN_ARM64_SHA256 }}
|
|
sha512: {{ .CRUN_ARM64_SHA512 }}
|
|
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
|
|
- url: https://github.com/containers/crun/releases/download/{{ .CRUN_VERSION }}/crun-{{ .CRUN_VERSION }}-linux-amd64-disable-systemd
|
|
destination: crun
|
|
sha256: {{ .CRUN_AMD64_SHA256 }}
|
|
sha512: {{ .CRUN_AMD64_SHA512 }}
|
|
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
|
|
install:
|
|
- |
|
|
mkdir -p /rootfs/usr/local/bin
|
|
cp -av crun /rootfs/usr/local/bin/crun
|
|
chmod +x /rootfs/usr/local/bin/crun
|
|
|
|
- |
|
|
mkdir -p /rootfs/etc/cri/conf.d
|
|
cp /pkg/10-crun.part /rootfs/etc/cri/conf.d/10-crun.part
|
|
test:
|
|
- |
|
|
mkdir -p /extensions-validator-rootfs
|
|
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
|
|
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
|
|
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
|
|
sbom:
|
|
outputPath: /rootfs/usr/local/share/spdx/crun.spdx.json
|
|
version: {{ .CRUN_VERSION }}
|
|
cpes:
|
|
- cpe:2.3:a:crun_project:crun:{{ .CRUN_VERSION }}:*:*:*:*:*:*:*
|
|
licenses:
|
|
- GPL-2.0
|
|
- LGPL-2.1
|
|
finalize:
|
|
- from: /rootfs
|
|
to: /rootfs
|
|
- from: /pkg/manifest.yaml
|
|
to: /
|