blob: f673ef69889fbd46dc5df517baa6d0ddcd518e53 [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:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050029 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
30 - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml
31 - kas build --target security-build-image kas/$CI_JOB_NAME-comp.yml
32 - kas build --target harden-image-minimal kas/$CI_JOB_NAME-harden.yml
33 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050034
35qemux86-64:
36 extends: .build
37 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050038 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
39 - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml
40 - kas build --target dm-verity-image-initramfs kas/$CI_JOB_NAME-dm-verify.yml
41 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050042
43qemuarm:
44 extends: .build
45 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050046 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
47 - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050048
49qemuarm64:
50 extends: .build
51 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050052 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
53 - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml
54 - kas build --target integrity-image-minimal kas/$CI_JOB_NAME-ima.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050055
56qemuppc:
57 extends: .build
58 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050059 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
60 - kas build --target security-build-image kas/$CI_JOB_NAME-parsec.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050061
62qemumips64:
63 extends: .build
64 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050065 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050066
67qemuriscv64:
68 extends: .build
69 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050070 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050071
72qemux86-64-tpm:
73 extends: .build
74 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050075 - kas build --target security-tpm-image kas/$CI_JOB_NAME.yml
76 - kas build --target security-tpm2-image kas/$CI_JOB_NAME2.yml
Andrew Geissler5bea8d82020-07-24 16:10:05 -050077
78qemuarm64-tpm2:
79 extends: .build
80 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050081 - kas build --target security-tpm2-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050082
83qemuarm64-alt:
84 extends: .build
85 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050086 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050087
88qemuarm64-multi:
89 extends: .build
90 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050091 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050092
93qemumips64-alt:
94 extends: .build
95 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -050096 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -050097
98qemumips64-multi:
99 extends: .build
100 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500101 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500102
103qemux86-64-alt:
104 extends: .build
105 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500106 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500107
108qemux86-64-multi:
109 extends: .build
110 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500111 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslercc589282020-09-18 13:34:40 -0500112
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500113qemux86-musl:
114 extends: .build
115 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500116 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500117
118qemuarm64-musl:
119 extends: .build
120 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500121 - kas build --target security-build-image kas/$CI_JOB_NAME.yml
Andrew Geissler157744b2020-10-30 15:42:05 -0500122
Andrew Geisslercc589282020-09-18 13:34:40 -0500123qemux86-test:
124 extends: .build
Andrew Geisslerd1d22e62020-10-16 10:14:32 -0500125 allow_failure: true
Andrew Geisslercc589282020-09-18 13:34:40 -0500126 script:
Andrew Geisslerf1e44062021-04-15 15:52:46 -0500127 - kas build --target security-test-image kas/$CI_JOB_NAME.yml
128 - kas build -c testimage --target security-test-image kas/$CI_JOB_NAME.yml
129