feat: watch-mode #6

Merged
krauterbaquette merged 29 commits from watch-mode into main 2025-06-02 18:30:41 +00:00

Create a watch mode for nts-srv which allows a CI like building of the notes

Create a `watch` mode for `nts-srv` which allows a `CI` like building of the notes
listen to file changes inside $home/data.
Determin which git repos got changes
this allows better local debug testing, as one can point it to the local .nts config dir
this is important to configure WebDAV for the CI uploads
additionally package it as a CLI so it is better testable
this will handle the build upload to nextcloud
nts add and nts remove do not need nts-srv installed. therefore the NTS_SRV_DATA directory
should not be controlled by a config file but by a environment variable to be used alongside nts
when nts-srv ist not installed.
this can be used to allow finer access-control -> use a sec account to create folders (with a quota) and just share the result
this is currently broken because the nix version running is to old
only copy necessary files for rust build
trixi is needed for a newer nix version, the old ones are not compatible with nts-srv
this fixes errors that happen with nts-srv watch when the remote and the local host
have different default branches
they might not be activated on every host
Add `nts-srv` watch, which enables CI usage.

This means that when a push to a git repository is detected,
`nts-srv` will try to build said repository with `nix build`.
If it is successfull then the results will be uploaded to a ResultStore.

Currently the only ResultStore is Nextcloud
krauterbaquette deleted branch watch-mode 2025-06-02 18:30:41 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
krauterbaquette/nts!6
No description provided.