ISO-repository/.gitea/workflows/builder.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 15: cannot unmarshal !!str `apt update` into model.Step line 16: cannot unmarshal !!str `apt ins...` into model.Step line 17: cannot unmarshal !!str `curl -L...` into model.Step line 18: cannot unmarshal !!str `xorriso...` into model.Step line 19: cannot unmarshal !!str `chmod +...` into model.Step line 20: cannot unmarshal !!str `gunzip ...` into model.Step line 21: cannot unmarshal !!str `echo pr...` into model.Step line 22: cannot unmarshal !!str `cp boot...` into model.Step line 23: cannot unmarshal !!str `gzip is...` into model.Step line 24: cannot unmarshal !!str `cd isof...` into model.Step line 27: cannot unmarshal !!str `sh -c "...` into model.Step line 28: cannot unmarshal !!str `cd ..` into model.Step line 29: cannot unmarshal !!str `chmod -...` into model.Step line 30: cannot unmarshal !!str `genisoi...` into model.Step

47 lines
1.5 KiB
YAML

name: Build ISO images
on:
workflow_dispatch:
release:
types: [released]
jobs:
build-x86:
container:
image: debian:latest
runs-on: [arm64]
steps:
- apt update
- apt install -y xorriso curl genisoimage cpio
- 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
- chmod +w -R isofiles/
- gunzip ./isofiles/install.amd/initrd.gz
- echo preseed.cfg | cpio -H newc -o -A -F isofiles/install.amd/initrd
- cp bootloader-configs/*.cfg isofiles/isolinux
- gzip isofiles/install.amd/initrd
- 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
- sh -c "find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt"
- cd ..
- 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 halis-debian-11.6.0-amd64.iso isofiles
artifacts:
paths:
- halis-debian-11.3.0-amd64.iso
expire_in: 1 mos 8 days
build-arm64:
image: debian:latest
stage: build
script:
- apt update
- apt install -y curl xz-utils file sudo
- ./arm64-build.sh
artifacts:
paths:
- ./*.img.xz
expire_in: 1 mos 8 days