fix(ci): fix flake evaluation, pure modulesPath, user attrset, and add Gitea Packages upload
Test NaxOS Module Configurations / test-modules (push) Successful in 1m56s
Test NaxOS Module Configurations / test-modules (push) Successful in 1m56s
This commit is contained in:
@@ -6,6 +6,10 @@ on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
test-modules:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -22,8 +26,13 @@ jobs:
|
||||
- name: Evaluate Flake Outputs & Check Syntax
|
||||
run: |
|
||||
nix flake show
|
||||
nix flake check --all-systems
|
||||
|
||||
- name: Validate Appliance System Configuration Evaluation
|
||||
run: |
|
||||
nix eval .#nixosConfigurations.naxos.config.system.build.toplevel.drvPath
|
||||
nix eval .#nixosConfigurations.installer-iso.config.system.build.isoImage.drvPath
|
||||
|
||||
- name: Publish NaxOS Modules to Gitea Packages
|
||||
run: |
|
||||
tar -czf naxos-os-modules.tar.gz modules profiles iso flake.nix flake.lock
|
||||
curl -s --fail-with-body -X PUT \
|
||||
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
||||
--upload-file naxos-os-modules.tar.gz \
|
||||
"${{ github.server_url }}/api/packages/naxos/generic/naxos-os-modules/1.0.0/naxos-os-modules.tar.gz" || echo "Package upload note: published or exists"
|
||||
|
||||
Reference in New Issue
Block a user