2022-05-23 08:30:27 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2022-05-25 10:38:21 +00:00
|
|
|
build-x86:
|
2022-05-23 08:30:27 +00:00
|
|
|
image: debian:latest
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- apt update
|
2022-05-23 08:44:35 +00:00
|
|
|
- apt install -y xorriso curl genisoimage cpio
|
2023-02-03 22:43:39 +00:00
|
|
|
- curl -LO https://laotzu.ftp.acc.umu.se/debian-cd/current/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso
|
|
|
|
- xorriso -osirrox on -indev debian-11.6.0-amd64-netinst.iso -extract / ./isofiles
|
2022-05-23 08:30:27 +00:00
|
|
|
- chmod +w -R isofiles/
|
2022-05-23 08:42:24 +00:00
|
|
|
- gunzip ./isofiles/install.amd/initrd.gz
|
2022-05-23 10:13:27 +00:00
|
|
|
- echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd
|
|
|
|
- cp bootloader-configs/*.cfg isofiles/isolinux
|
2022-05-23 08:30:27 +00:00
|
|
|
- gzip isofiles/install.amd/initrd
|
2022-05-23 09:33:03 +00:00
|
|
|
- cd isofiles
|
|
|
|
# Execute the md5sum generation in a separated shell instance, because it returns a
|
|
|
|
# warning (file system loop) that makes the CI job error out
|
2022-05-23 08:49:47 +00:00
|
|
|
- sh -c "find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt"
|
2022-05-23 09:33:03 +00:00
|
|
|
- cd ..
|
2022-05-23 08:30:27 +00:00
|
|
|
- chmod -w -R isofiles/
|
2023-02-03 22:43:39 +00:00
|
|
|
- genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o halia-debian-11.6.0-amd64.iso isofiles
|
2022-05-23 08:30:27 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- halia-debian-11.3.0-amd64.iso
|
|
|
|
expire_in: 1 mos 8 days
|
2022-05-23 16:15:27 +00:00
|
|
|
|
|
|
|
build-arm64:
|
2022-05-25 10:39:30 +00:00
|
|
|
image: debian:latest
|
2022-05-23 16:15:27 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2022-05-25 10:39:30 +00:00
|
|
|
- apt update
|
2022-05-25 10:58:01 +00:00
|
|
|
- apt install -y curl xz-utils file sudo
|
2022-05-25 10:37:22 +00:00
|
|
|
- ./arm64-build.sh
|
2022-05-23 16:15:27 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2022-05-25 10:37:22 +00:00
|
|
|
- ./*.img.xz
|
2022-05-23 16:15:27 +00:00
|
|
|
expire_in: 1 mos 8 days
|