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:
@@ -59,6 +59,14 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo -E ./buildiso -p antergos
|
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
|
- name: Upload ISO artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -31,5 +31,10 @@ sudo podman run --rm --privileged --entrypoint sh \
|
|||||||
echo "=== BUILD FINISHED ==="
|
echo "=== BUILD FINISHED ==="
|
||||||
mkdir -p /workspace/iso-output
|
mkdir -p /workspace/iso-output
|
||||||
cp -a /workspace/iso/antergos/. /workspace/iso-output/ 2>/dev/null || true
|
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
|
ls -la /workspace/iso-output/ | head -20
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user