-
Notifications
You must be signed in to change notification settings - Fork 14
/
.kres.yaml
73 lines (72 loc) · 1.51 KB
/
.kres.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
kind: common.Repository
spec:
mainBranch: v2
---
kind: common.Docker
name: setup-ci
spec:
allowInsecure: true
---
kind: golang.Toolchain
spec:
extraPackages:
- cdrkit
- cryptsetup
- dosfstools
- e2fsprogs
- gptfdisk
- lvm2
- parted
- util-linux
- squashfs-tools
- xfsprogs
---
kind: service.CodeCov
spec:
targetThreshold: 35
---
kind: auto.CustomSteps
spec:
steps:
- name: zfs-img
toplevel: true
---
kind: custom.Step
name: zfs-img
spec:
makefile:
enabled: true
docker:
enabled: true
stages:
- name: zfs-img-gen
description: Creates the ZFS image
from: fedora:39
steps:
- script:
command: dnf install -y zfs-fuse zstd && rm -rf /var/cache/dnf
- script:
command: |
--security=insecure zfs-fuse & \
dd if=/dev/zero of=/tmp/zfs.img bs=16M count=4 iflag=fullblock && \
sleep 1 && \
zpool create -f -R /tmp/zfs zroot1 /tmp/zfs.img && \
zstd -19 /tmp/zfs.img -o /tmp/zfs.img.zst
- name: zfs-img
description: copies out the ZFS image
steps:
- copy:
from: zfs-img-gen
src: /tmp/zfs.img.zst
dst: /
---
kind: golang.UnitTests
name: unit-tests
spec:
requiresInsecure: true
docker:
steps:
- copy:
from: zfs-img
src: /
dst: /src/blkid/testdata/