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
@@ -35,14 +35,11 @@ jobs:
35
35
packages :
36
36
name : " Build Flatcar packages"
37
37
runs-on :
38
- - self-hosted
39
- - debian
40
- - build
41
- - x64
38
+ - ubuntu-latest
42
39
strategy :
43
- fail-fast : false
40
+ fail-fast : true
44
41
matrix :
45
- arch : ["amd64", "arm64" ]
42
+ arch : ["amd64"]
46
43
defaults :
47
44
run :
48
45
working-directory : scripts
59
56
sudo mkdir -p /etc/apt/keyrings
60
57
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
61
58
echo \
62
- "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
59
+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
63
60
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
64
61
sudo apt-get update
65
62
sudo apt-get install -y docker-ce docker-ce-cli containerd.io docker-compose-plugin
96
93
arch="${{ matrix.arch }}"
97
94
echo "arch=${arch}" >> $GITHUB_ENV
98
95
99
- IMAGE_FORMATS="qemu_uefi pxe "
96
+ IMAGE_FORMATS="qemu_uefi"
100
97
[ -z "${{ inputs.image_formats }}" ] || IMAGE_FORMATS="${{ inputs.image_formats }}"
101
98
echo "IMAGE_FORMATS=${IMAGE_FORMATS}" >> $GITHUB_ENV
102
99
@@ -142,31 +139,6 @@ jobs:
142
139
-C "${sdk_image}" \
143
140
./build_packages --board="${arch}-usr"
144
141
145
- # Create binpkgs tarball for archiving as artifact later
146
- ./run_sdk_container -n "${container_name}" \
147
- tar -C "/build/${arch}-usr/var/lib/portage/pkgs/" \
148
- -cvf binpkgs.tar .
149
-
150
- - name : Extract build logs
151
- if : always() && !cancelled()
152
- shell : bash
153
- run : |
154
- set -euo pipefail
155
- set -x
156
- # Copy logs
157
- ./run_sdk_container -n "${container_name}" \
158
- tar -cJf ebuild_logs.tar.xz /build/${arch}-usr/var/log/portage \
159
- /build/${arch}-usr/var/tmp/portage
160
-
161
- - name : Upload build logs
162
- if : always() && !cancelled()
163
- uses : actions/upload-artifact@v4
164
- with :
165
- retention-days : 7
166
- name : ${{ matrix.arch }}-build-logs
167
- path : |
168
- scripts/ebuild_logs.tar.xz
169
-
170
142
- name : Build image
171
143
shell : bash
172
144
run : |
@@ -185,7 +157,7 @@ jobs:
185
157
./run_sdk_container -n "${container_name}" \
186
158
./build_image --board="${arch}-usr" --group="${channel}" \
187
159
--output_root="${CI_CONTAINER_ARTIFACT_ROOT}" \
188
- prodtar container sysext
160
+ --image_compression_formats=none
189
161
190
162
- name : Build VM image(s)
191
163
shell : bash
@@ -243,88 +215,13 @@ jobs:
243
215
mv * ../../images/
244
216
)
245
217
246
- - name : Generate reports against last release
247
- run : .github/workflows/image_changes.sh ${{ matrix.arch }} release
248
-
249
- - name : Generate reports against last nightly
250
- run : .github/workflows/image_changes.sh ${{ matrix.arch }} nightly
251
-
252
- - name : Upload binpkgs
253
- uses : actions/upload-artifact@v4
254
- with :
255
- retention-days : 7
256
- name : ${{ matrix.arch }}-binpkgs
257
- path : |
258
- scripts/binpkgs.tar
259
-
260
- - name : Upload update image (used with kola tests later)
261
- uses : actions/upload-artifact@v4
262
- with :
263
- retention-days : 7
264
- name : ${{ matrix.arch }}-test-update
265
- path : |
266
- scripts/artifacts/images/flatcar_test_update.gz
267
-
268
218
- name : Upload generic image
269
219
uses : actions/upload-artifact@v4
270
220
with :
271
221
retention-days : 7
272
222
name : ${{ matrix.arch }}-generic-image
273
223
path : |
274
- scripts/artifacts/images/flatcar_production_image.bin
275
- scripts/artifacts/images/flatcar_production_image.grub
276
- scripts/artifacts/images/flatcar_production_image.shim
277
- scripts/artifacts/images/flatcar_production_image.vmlinuz
278
- scripts/artifacts/images/flatcar_production_image*.txt
279
- scripts/artifacts/images/flatcar_production_image*.json
280
- scripts/artifacts/images/flatcar_production_image_pcr_policy.zip
224
+ scripts/artifacts/images/*.img
281
225
scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
282
226
scripts/artifacts/images/flatcar_production_qemu.sh
283
227
284
- - name : Upload developer container
285
- uses : actions/upload-artifact@v4
286
- with :
287
- retention-days : 7
288
- name : ${{ matrix.arch }}-devcontainer
289
- path : |
290
- scripts/artifacts/images/flatcar_developer_container*
291
-
292
- - name : Upload reports
293
- uses : actions/upload-artifact@v4
294
- with :
295
- retention-days : 7
296
- name : ${{ matrix.arch }}-image-changes-reports
297
- path : |
298
- scripts/image-changes-reports*.txt
299
-
300
- # Clean up what we uploaded already so the "vendor images" wildcard
301
- # works when uploading artifacts in the next step.
302
- - name : Remove update, generic and devcontainer images
303
- shell : bash
304
- run : |
305
- set -euo pipefail
306
- set -x
307
- rm -f artifacts/images/flatcar_test_update.gz \
308
- artifacts/images/flatcar_production_image* \
309
- artifacts/images/flatcar_developer_container* \
310
- artifacts/images/flatcar_production_update*
311
-
312
- - name : Upload vendor images
313
- uses : actions/upload-artifact@v4
314
- with :
315
- retention-days : 7
316
- name : ${{ matrix.arch }}-vm-images
317
- path : |
318
- scripts/artifacts/images/*.img
319
- scripts/artifacts/images/*.bin
320
- scripts/artifacts/images/flatcar_production_*_efi_*.qcow2
321
- scripts/artifacts/images/*.txt
322
- scripts/artifacts/images/flatcar-*.raw
323
- scripts/artifacts/images/flatcar_production_*.sh
324
- scripts/artifacts/images/flatcar_production_pxe_image.cpio.gz
325
- scripts/artifacts/images/flatcar_production_pxe.vmlinuz
326
-
327
- test :
328
- needs : packages
329
- name : " Run kola tests"
330
- uses : ./.github/workflows/run-kola-tests.yaml
0 commit comments