blob: 1442239b208d65f8c638f4219ee7d336f2558d40 [file] [log] [blame]
Andrew Geissler5bea8d82020-07-24 16:10:05 -05001stages:
2 - build
3
4.build:
5 stage: build
6 image: crops/poky
7 before_script:
Andrew Geisslercc589282020-09-18 13:34:40 -05008 - echo "$ERR_REPORT_USERNAME" > ~/.oe-send-error
9 - echo "$ERR_REPORT_EMAIL" >> ~/.oe-send-error
Andrew Geissler5bea8d82020-07-24 16:10:05 -050010 - export PATH=~/.local/bin:$PATH
11 - wget https://bootstrap.pypa.io/get-pip.py
12 - python3 get-pip.py
13 - python3 -m pip install kas
Andrew Geissler5bea8d82020-07-24 16:10:05 -050014 after_script:
Andrew Geisslercc589282020-09-18 13:34:40 -050015 - cd $CI_PROJECT_DIR/poky
16 - . ./oe-init-build-env $CI_PROJECT_DIR/build
17 - for x in `ls $CI_PROJECT_DIR/build/tmp/log/error-report/ | grep error_report_`; do
18 - send-error-report -y tmp/log/error-report/$x
19 - done
20 - cd $CI_PROJECT_DIR
Andrew Geissler5bea8d82020-07-24 16:10:05 -050021 - rm -rf build
Andrew Geissler5bea8d82020-07-24 16:10:05 -050022 cache:
23 paths:
24 - layers
25
26qemux86:
27 extends: .build
28 script:
29 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
30
31qemux86-64:
32 extends: .build
33 script:
34 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
35
36qemuarm:
37 extends: .build
38 script:
39 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
40
41qemuarm64:
42 extends: .build
43 script:
44 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
45
46qemuppc:
47 extends: .build
48 script:
49 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
50
51qemumips64:
52 extends: .build
53 script:
54 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
55
56qemuriscv64:
57 extends: .build
58 script:
59 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
60
61qemux86-64-tpm:
62 extends: .build
63 script:
64 - kas build --target security-tpm-image kas/$CI_JOB_NAME.yml
65
66qemux86-64-tpm2:
67 extends: .build
68 script:
69 - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml
70
71qemuarm64-tpm2:
72 extends: .build
73 script:
74 - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml
75
76qemux86-ima:
77 extends: .build
78 script:
79 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml
80
81qemux86-64-ima:
82 extends: .build
83 script:
84 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml
85
86qemuarm64-ima:
87 extends: .build
88 script:
89 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050090
91qemux86-64-dm-verify:
92 extends: .build
93 script:
94 - kas build --target core-image-minimal kas/qemux86-64.yml
95 - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME.yml
96
97
98qemuarm64-alt:
99 extends: .build
100 script:
101 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
102
103qemuarm64-multi:
104 extends: .build
105 script:
106 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
107
108qemumips64-alt:
109 extends: .build
110 script:
111 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
112
113qemumips64-multi:
114 extends: .build
115 script:
116 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
117
118qemux86-64-alt:
119 extends: .build
120 script:
121 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
122
123qemux86-64-multi:
124 extends: .build
125 script:
126 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
127
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500128qemux86-musl:
129 extends: .build
130 script:
131 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
132
133qemuarm64-musl:
134 extends: .build
135 script:
136 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500137
Andrew Geissler157744b2020-10-30 15:42:05 -0500138qemux86-harden:
139 extends: .build
140 script:
141 - kas build --target harden-image-minimal kas/$CI_JOB_NAME.yml
142
143qemux86-comp:
144 extends: .build
145 script:
146 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
147
Andrew Geisslercc589282020-09-18 13:34:40 -0500148qemux86-test:
149 extends: .build
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500150 allow_failure: true
Andrew Geisslercc589282020-09-18 13:34:40 -0500151 script:
152 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
153 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml