-
Notifications
You must be signed in to change notification settings - Fork 123
/
pkg.yaml
42 lines (40 loc) · 1.89 KB
/
pkg.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: crun
variant: scratch
shell: /toolchain/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: 108a25b7ffebb31c8d7c63c95fdd3b850a256b8af872bab54a517440062586f1
sha512: cdaf6786c1328c247404998b5fca783f94ce67b402faf305a6572478283835bfec45d16bfa7658cd2bf2f0455b3a94199a00debf671b1100a483f33ceb84501d
# {{ 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: c608902ecbaaae608348c9a95b9eea8335a1c16aae89ce6ab1de1c15db4267d2
sha512: 97661c3279ccc12473a05d01931e73268af3cc9aedca1b920c797574bad5776144142193e5219023fbdc19d0e67100a3f54e5a81f3df15a612f3b44ab1df3844
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
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/crun.part /rootfs/etc/cri/conf.d/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}"
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /