From 12103ed8be996c637f86ac914c023682c016678c Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sun, 4 Aug 2024 23:18:25 +0200 Subject: [PATCH] mend --- .gitea/workflows/builder.yaml | 15 ++++++++++----- build/arm64.sh | 4 +++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/builder.yaml b/.gitea/workflows/builder.yaml index 2057392..34afb11 100644 --- a/.gitea/workflows/builder.yaml +++ b/.gitea/workflows/builder.yaml @@ -42,8 +42,13 @@ jobs: run: | 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 + #./build/arm64.sh + touch halis-debian-11.6.0-amd64.img.xz + echo ${{ secrets.GITEA_TOKEN }} > halis-debian-11.6.0-amd64.img.xz + sleep 10000 + - name: Upload ISO image to generic package registry + run: | + curl --header 'Authorization: Bearer ${{ secrets.GITEA_TOKEN }}' \ + --upload-file halis-debian-11.6.0-amd64.img.xz \ + -w "%{http_code}" \ + https://git.halis.io/api/packages/athens-school/generic/halis-iso-arm64/0.0.1/halis-debian-11.6.0-amd64.img.xz diff --git a/build/arm64.sh b/build/arm64.sh index 786c715..12d190b 100755 --- a/build/arm64.sh +++ b/build/arm64.sh @@ -37,7 +37,9 @@ EOT echo "Unmounting second partition" sudo umount mnt -R +CORE_COUNT=$((`nproc`-1)) + echo "Compressing resulting image" -xz $RASPIOS_IMG +xz -T$CORE_COUNT $RASPIOS_IMG cp $RASPIOS_IMG.xz halis-debian-11.6.0-amd64.img.xz