diff --git a/.gitea/workflows/builder.yaml b/.gitea/workflows/builder.yaml index 2057392..faac895 100644 --- a/.gitea/workflows/builder.yaml +++ b/.gitea/workflows/builder.yaml @@ -23,10 +23,9 @@ jobs: ./build/amd64.sh - name: Upload ISO image to generic package registry run: | - curl --user your_username:your_password_or_token \ - --header 'authorization: Bearer ${{ secrets.GITEA_TOKEN }}' \ - --upload-file halis-debian-11.6.0-amd64.img.xz \ - https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz + curl --header 'Authorization: Bearer ${{ REGISTRY_TOKEN }}' \ + --upload-file halis-12.5.0-amd64.iso \ + https://git.halis.io/api/packages/athens-school/generic/halis-iso/0.0.1/halis-amd64.iso build-arm64: container: @@ -43,7 +42,8 @@ jobs: apt update apt install -y curl xz-utils file sudo ./build/arm64.sh - - name: Upload ISO image - uses: actions/upload-artifact@v4 - with: - path: ./*.img.xz + - name: Upload ISO image to generic package registry + run: | + curl --header 'Authorization: Bearer ${{ REGISTRY_TOKEN }}' \ + --upload-file halis-11.6.0-arm64.img.xz \ + https://git.halis.io/api/packages/athens-school/generic/halis-iso/0.0.1/halis-arm64.img.xz diff --git a/build/amd64.sh b/build/amd64.sh index 1fece0f..a77fa98 100755 --- a/build/amd64.sh +++ b/build/amd64.sh @@ -13,4 +13,4 @@ cd isofiles 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-12.5.0-amd64.iso isofiles +genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o halis-12.5.0-amd64.iso isofiles diff --git a/build/arm64.sh b/build/arm64.sh index 786c715..887e41a 100755 --- a/build/arm64.sh +++ b/build/arm64.sh @@ -37,7 +37,9 @@ EOT echo "Unmounting second partition" sudo umount mnt -R -echo "Compressing resulting image" -xz $RASPIOS_IMG +CORE_COUNT=$((`nproc`-1)) -cp $RASPIOS_IMG.xz halis-debian-11.6.0-amd64.img.xz +echo "Compressing resulting image" +xz -T$CORE_COUNT $RASPIOS_IMG + +mv $RASPIOS_IMG.xz halis-11.6.0-arm64.img.xz