feat: generate ISO sha256 checksum on build

artools only embeds internal LiveOS md5 files; nothing verifies the ISO
itself. Emit <iso>.sha256 alongside the artifact in both CI and the
podman build script so releases ship a verifiable checksum.
This commit is contained in:
2026-08-17 18:14:07 +02:00
parent b46206d54f
commit dab33f11e2
2 changed files with 13 additions and 0 deletions
+8
View File
@@ -59,6 +59,14 @@ jobs:
run: |
sudo -E ./buildiso -p antergos
- name: Generate checksums
run: |
cd "${WORKSPACE_DIR}/iso/antergos"
ISO=$(ls antergos-*.iso | head -1)
[[ -z "$ISO" || ! -f "$ISO" ]] && { echo "No ISO found"; exit 1; }
sha256sum "$ISO" > "$ISO.sha256"
cat "$ISO.sha256"
- name: Upload ISO artifact
uses: actions/upload-artifact@v4
with:
+5
View File
@@ -31,5 +31,10 @@ sudo podman run --rm --privileged --entrypoint sh \
echo "=== BUILD FINISHED ==="
mkdir -p /workspace/iso-output
cp -a /workspace/iso/antergos/. /workspace/iso-output/ 2>/dev/null || true
cd /workspace/iso-output
ISO=$(ls antergos-*.iso 2>/dev/null | head -1)
[[ -z "$ISO" || ! -f "$ISO" ]] && { echo "No ISO found in iso-output/"; exit 1; }
sha256sum "$ISO" > "$ISO.sha256"
cat "$ISO.sha256"
ls -la /workspace/iso-output/ | head -20
'