7
7
description : |
8
8
Space-separated vendor formats to build.
9
9
required : true
10
- default : qemu_uefi pxe
10
+ default : qemu_uefi
11
11
custom_sdk_version :
12
12
type : string
13
13
required : false
21
21
description : |
22
22
Space-separated vendor formats to build.
23
23
required : true
24
- default : qemu_uefi pxe
24
+ default : qemu_uefi
25
25
custom_sdk_version :
26
26
type : string
27
27
required : false
40
40
- build
41
41
- amd64
42
42
strategy :
43
- fail-fast : false
43
+ fail-fast : true
44
44
matrix :
45
- arch : ["amd64", " arm64"]
45
+ arch : ["arm64"]
46
46
defaults :
47
47
run :
48
48
working-directory : scripts
92
92
arch="${{ matrix.arch }}"
93
93
echo "arch=${arch}" >> $GITHUB_ENV
94
94
95
- IMAGE_FORMATS="qemu_uefi pxe "
95
+ IMAGE_FORMATS="qemu_uefi"
96
96
[ -z "${{ inputs.image_formats }}" ] || IMAGE_FORMATS="${{ inputs.image_formats }}"
97
97
echo "IMAGE_FORMATS=${IMAGE_FORMATS}" >> $GITHUB_ENV
98
98
@@ -138,31 +138,6 @@ jobs:
138
138
-C "${sdk_image}" \
139
139
./build_packages --board="${arch}-usr"
140
140
141
- # Create binpkgs tarball for archiving as artifact later
142
- ./run_sdk_container -n "${container_name}" \
143
- tar -C "/build/${arch}-usr/var/lib/portage/pkgs/" \
144
- -cvf binpkgs.tar .
145
-
146
- - name : Extract build logs
147
- if : always() && !cancelled()
148
- shell : bash
149
- run : |
150
- set -euo pipefail
151
- set -x
152
- # Copy logs
153
- ./run_sdk_container -n "${container_name}" \
154
- tar -cJf ebuild_logs.tar.xz /build/${arch}-usr/var/log/portage \
155
- /build/${arch}-usr/var/tmp/portage
156
-
157
- - name : Upload build logs
158
- if : always() && !cancelled()
159
- uses : actions/upload-artifact@v4
160
- with :
161
- retention-days : 7
162
- name : ${{ matrix.arch }}-build-logs
163
- path : |
164
- scripts/ebuild_logs.tar.xz
165
-
166
141
- name : Build image
167
142
shell : bash
168
143
run : |
@@ -181,7 +156,7 @@ jobs:
181
156
./run_sdk_container -n "${container_name}" \
182
157
./build_image --board="${arch}-usr" --group="${channel}" \
183
158
--output_root="${CI_CONTAINER_ARTIFACT_ROOT}" \
184
- prodtar container sysext
159
+ --image_compression_formats=none
185
160
186
161
- name : Build VM image(s)
187
162
shell : bash
@@ -239,88 +214,15 @@ jobs:
239
214
mv * ../../images/
240
215
)
241
216
242
- - name : Generate reports against last release
243
- run : .github/workflows/image_changes.sh ${{ matrix.arch }} release
244
-
245
- - name : Generate reports against last nightly
246
- run : .github/workflows/image_changes.sh ${{ matrix.arch }} nightly
247
-
248
- - name : Upload binpkgs
249
- uses : actions/upload-artifact@v4
250
- with :
251
- retention-days : 7
252
- name : ${{ matrix.arch }}-binpkgs
253
- path : |
254
- scripts/binpkgs.tar
255
-
256
- - name : Upload update image (used with kola tests later)
257
- uses : actions/upload-artifact@v4
258
- with :
259
- retention-days : 7
260
- name : ${{ matrix.arch }}-test-update
261
- path : |
262
- scripts/artifacts/images/flatcar_test_update.gz
263
-
264
217
- name : Upload generic image
265
218
uses : actions/upload-artifact@v4
266
219
with :
267
220
retention-days : 7
268
221
name : ${{ matrix.arch }}-generic-image
269
222
path : |
270
- scripts/artifacts/images/flatcar_production_image.bin
271
- scripts/artifacts/images/flatcar_production_image.grub
272
- scripts/artifacts/images/flatcar_production_image.shim
273
- scripts/artifacts/images/flatcar_production_image.vmlinuz
274
- scripts/artifacts/images/flatcar_production_image*.txt
275
- scripts/artifacts/images/flatcar_production_image*.json
276
- scripts/artifacts/images/flatcar_production_image_pcr_policy.zip
277
- scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
278
- scripts/artifacts/images/flatcar_production_qemu.sh
279
-
280
- - name : Upload developer container
281
- uses : actions/upload-artifact@v4
282
- with :
283
- retention-days : 7
284
- name : ${{ matrix.arch }}-devcontainer
285
- path : |
286
- scripts/artifacts/images/flatcar_developer_container*
287
-
288
- - name : Upload reports
289
- uses : actions/upload-artifact@v4
290
- with :
291
- retention-days : 7
292
- name : ${{ matrix.arch }}-image-changes-reports
293
- path : |
294
- scripts/image-changes-reports*.txt
295
-
296
- # Clean up what we uploaded already so the "vendor images" wildcard
297
- # works when uploading artifacts in the next step.
298
- - name : Remove update, generic and devcontainer images
299
- shell : bash
300
- run : |
301
- set -euo pipefail
302
- set -x
303
- rm -f artifacts/images/flatcar_test_update.gz \
304
- artifacts/images/flatcar_production_image* \
305
- artifacts/images/flatcar_developer_container* \
306
- artifacts/images/flatcar_production_update*
307
-
308
- - name : Upload vendor images
309
- uses : actions/upload-artifact@v4
310
- with :
311
- retention-days : 7
312
- name : ${{ matrix.arch }}-vm-images
313
- path : |
314
- scripts/artifacts/images/*.img
315
223
scripts/artifacts/images/*.bin
316
- scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
224
+ scripts/artifacts/images/*.img
317
225
scripts/artifacts/images/*.txt
318
226
scripts/artifacts/images/flatcar-*.raw
319
- scripts/artifacts/images/flatcar_production_*.sh
320
- scripts/artifacts/images/flatcar_production_pxe_image.cpio.gz
321
- scripts/artifacts/images/flatcar_production_pxe.vmlinuz
322
-
323
- test :
324
- needs : packages
325
- name : " Run kola tests"
326
- uses : ./.github/workflows/run-kola-tests.yaml
227
+ scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
228
+ scripts/artifacts/images/flatcar_production_qemu.sh
0 commit comments