-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci-images.yml
48 lines (46 loc) · 1.72 KB
/
ci-images.yml
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
---
variables:
STIMAGES_VERSION: v0.0.2
# Build an ST image on a Debian system with stprov installed
build_stimage:
stage: images
image: debian:bookworm-backports
before_script:
- apt-get update
- apt-get install -qqy golang-1.22
- apt-get install -qqy git pigz
- export GOPATH=$PWD/.go
- export PATH=$PATH:/usr/lib/go-1.22/bin:$GOPATH/bin
- (cd integration && go install system-transparency.org/stmgr)
script:
- apt install -qqy sudo make mmdebstrap cpio
- git clone -b $STIMAGES_VERSION https://git.glasklar.is/system-transparency/core/stimages
- cp -a integration/st-config/stprov stimages/config/
- echo sikritpassword > stimages/config/stprov/pw.root
- make stprov
- (cd stimages && make CONFIG=config/stprov STIMAGE_NAME=stimage)
artifacts:
name: "images-$CI_PROJECT_NAME-$CI_COMMIT_REF_SLUG"
paths:
- stimages/build/stimage.*
# Build an ISO on u-root userland with stprov installed
build_bootimages:
stage: images
image: debian:bookworm-backports
variables:
BUILD: integration/build
before_script:
- apt-get update
- apt-get install -qqy golang-1.22
- apt-get install -qqy git
- export GOPATH=$PWD/.go
- export PATH=$PATH:/usr/lib/go-1.22/bin:$GOPATH/bin
- (cd integration && go install system-transparency.org/stmgr)
script:
- stmgr uki create -format iso -kernel $BUILD/kernel.vmlinuz -initramfs $BUILD/stprov.cpio.gz -out $BUILD/stprov.iso
- stmgr uki create -format iso -kernel $BUILD/kernel.vmlinuz -initramfs $BUILD/stprov.cpio.gz -out $BUILD/stprov.ttyS0.iso -cmdline console=ttyS0,115200
artifacts:
name: "images-$CI_PROJECT_NAME-$CI_COMMIT_REF_SLUG"
paths:
- $BUILD/stprov.iso
- $BUILD/stprov.ttyS0.iso