Create Gitea actions
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
. /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh
|
||||||
nix build -L .#nixosConfigurations.dev-iso.config.system.build.isoImage
|
nix build -L .#nixosConfigurations.dev-iso.config.system.build.isoImage
|
||||||
cp -rL result/iso/*.iso /ssd/radiantwave/build/radiantwave-kiosk-iso-dev-$(date +%Y%m%d-%H%M%S)
|
cp -rL result/iso/*.iso /ssd/radiantwave/build/radiantwave-kiosk-iso-dev-$(date +%Y-%m-%d_%H-%M-%S)
|
||||||
|
|
||||||
- name: Commit updated flake.lock
|
- name: Commit updated flake.lock
|
||||||
run: |
|
run: |
|
||||||
@@ -53,6 +53,9 @@ jobs:
|
|||||||
git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit"
|
git commit -m "chore: update radiantwave-dev to latest dev" || echo "Nothing to commit"
|
||||||
git push
|
git push
|
||||||
|
|
||||||
|
- name: Copy ISO to fileserver
|
||||||
|
scp result/images/* radiantwave-infra:/mnt/infrastructure_data/files/images/
|
||||||
|
|
||||||
- name: Notify
|
- name: Notify
|
||||||
if: always()
|
if: always()
|
||||||
uses: https://github.com/dawidd6/action-send-mail@v3
|
uses: https://github.com/dawidd6/action-send-mail@v3
|
||||||
@@ -62,6 +65,6 @@ jobs:
|
|||||||
username: ${{ secrets.MAIL_USERNAME }}
|
username: ${{ secrets.MAIL_USERNAME }}
|
||||||
password: ${{ secrets.MAIL_PASSWORD }}
|
password: ${{ secrets.MAIL_PASSWORD }}
|
||||||
subject: "${{ job.status == 'success' && '✅' || '❌' }} KioskConfig dev build ${{ job.status }}"
|
subject: "${{ job.status == 'success' && '✅' || '❌' }} KioskConfig dev build ${{ job.status }}"
|
||||||
to: cnclack@pm.me
|
to: nclack@radiantwavetech.com
|
||||||
from: ci@radiantwavetech.com
|
from: ci@radiantwavetech.com
|
||||||
body: "KioskConfig dev build ${{ job.status }} — radiantwave-dev updated and arstifacts copied to /ssd/radiantwave/build/"
|
body: "KioskConfig dev build ${{ job.status }} — radiantwave-dev updated and arstifacts copied to /ssd/radiantwave/build/"
|
||||||
-4300
File diff suppressed because it is too large
Load Diff
-43
@@ -1,43 +0,0 @@
|
|||||||
Build ISO installer
|
|
||||||
nix build .#nixosConfigurations.installer-iso.config.system.build.isoImage
|
|
||||||
|
|
||||||
Build kiosk system and push to Attic cache
|
|
||||||
nix build .#nixosConfigurations.radiantwavekiosk.config.system.build.toplevel
|
|
||||||
attic push kiosk ./result
|
|
||||||
|
|
||||||
Deploy to a specific kiosk over SSH
|
|
||||||
nixos-rebuild switch --flake .#radiantwavekiosk --target-host root@<host>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## How these build paths work
|
|
||||||
|
|
||||||
The build commands follow the flake output attribute tree. Start with `flake.nix`:
|
|
||||||
|
|
||||||
```nix
|
|
||||||
nixosConfigurations = {
|
|
||||||
radiantwavekiosk = nixpkgs.lib.nixosSystem { ... }; # production machine
|
|
||||||
installer-iso = nixpkgs.lib.nixosSystem { ... }; # USB installer
|
|
||||||
};
|
|
||||||
```
|
|
||||||
|
|
||||||
Each `nixosConfiguration` is a full NixOS system. You access what you want to build
|
|
||||||
by walking the attribute tree with dots:
|
|
||||||
|
|
||||||
```
|
|
||||||
.#nixosConfigurations.<name>.config.system.build.<target>
|
|
||||||
│ │ │ │
|
|
||||||
│ │ │ └─ what to build:
|
|
||||||
│ │ │ toplevel = full system closure
|
|
||||||
│ │ │ isoImage = bootable ISO
|
|
||||||
│ │ │
|
|
||||||
│ │ └─ name from flake.nix (radiantwavekiosk, installer-iso)
|
|
||||||
│ │
|
|
||||||
│ └─ nixosConfigurations = standard flake output for NixOS systems
|
|
||||||
│
|
|
||||||
└─ .# = "this flake, attribute..."
|
|
||||||
```
|
|
||||||
|
|
||||||
You can explore what's available with:
|
|
||||||
nix eval .#nixosConfigurations --apply builtins.attrNames
|
|
||||||
nix eval .#nixosConfigurations.radiantwavekiosk.config.system.build --apply builtins.attrNames
|
|
||||||
Reference in New Issue
Block a user