-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathci-images.yml
More file actions
25 lines (24 loc) · 869 Bytes
/
ci-images.yml
File metadata and controls
25 lines (24 loc) · 869 Bytes
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
---
variables:
STIMAGES_VERSION: v0.0.2
# Build an ST image on a Debian system with stprov installed
build_stimage:
stage: images
image: debian:trixie
before_script:
- apt-get update
- apt-get install -qqy golang-1.24 git pigz
- export GOPATH=$PWD/.go
- export PATH=$PATH:/usr/lib/go-1.24/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.*