feat(installer): deploy naxos-api, ui, and modules during install, and build ISO in CI
Test NaxOS Module Configurations / test-modules (push) Successful in 9m20s
Test NaxOS Module Configurations / test-modules (push) Successful in 9m20s
This commit is contained in:
@@ -52,3 +52,28 @@ jobs:
|
||||
echo "Failed to publish package to Gitea Packages ($STATUS): $BODY"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Build & Publish Bootable Installer ISO
|
||||
run: |
|
||||
echo "Building NaxOS Bootable Installer ISO..."
|
||||
nix build .#iso --option max-jobs auto
|
||||
ISO_FILE=$(ls result/iso/*.iso | head -n 1)
|
||||
echo "Built ISO image: $ISO_FILE ($(du -h "$ISO_FILE" | cut -f1))"
|
||||
sha256sum "$ISO_FILE" > "$ISO_FILE.sha256"
|
||||
|
||||
TOKEN="${{ secrets.PACKAGE_TOKEN }}"
|
||||
if [ -z "$TOKEN" ]; then
|
||||
TOKEN="${{ secrets.GITEA_TOKEN }}"
|
||||
fi
|
||||
|
||||
ISO_NAME=$(basename "$ISO_FILE")
|
||||
echo "Publishing $ISO_NAME to Gitea Packages..."
|
||||
curl -s -X PUT \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
--upload-file "$ISO_FILE" \
|
||||
"${{ github.server_url }}/api/packages/naxos/generic/naxos-installer-iso/1.0.0/$ISO_NAME" || echo "ISO package already exists"
|
||||
|
||||
curl -s -X PUT \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
--upload-file "$ISO_FILE.sha256" \
|
||||
"${{ github.server_url }}/api/packages/naxos/generic/naxos-installer-iso/1.0.0/$ISO_NAME.sha256" || echo "Checksum already exists"
|
||||
|
||||
Reference in New Issue
Block a user