24 lines
982 B
YAML
24 lines
982 B
YAML
|
stages:
|
||
|
- build
|
||
|
|
||
|
build-images:
|
||
|
image: debian:latest
|
||
|
stage: build
|
||
|
script:
|
||
|
- apt update
|
||
|
- apt install -y xorriso curl genisoimage
|
||
|
- curl -O https://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/debian-11.3.0-amd64-netinst.iso
|
||
|
- xorriso -osirrox on -index debian-11.3.0-amd64-netinst.iso -extract / ./isofiles
|
||
|
- chmod +w -R isofiles/
|
||
|
- gunzip isofiles/install.amd/initrd.gz
|
||
|
- echo debian/preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd
|
||
|
- cp debian/*.cfg isofiles/isolinux
|
||
|
- gzip isofiles/install.amd/initrd
|
||
|
- find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt
|
||
|
- chmod -w -R isofiles/
|
||
|
- 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.3.0-amd64.iso isofiles
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- halia-debian-11.3.0-amd64.iso
|
||
|
expire_in: 1 mos 8 days
|