Commit Graph

119 Commits

Author SHA1 Message Date
0f7c56d7eb fixing control plane backup too
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 3s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 4s
2026-07-22 08:38:47 -03:00
cafbb01200 updating flow and notify endpoint
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 8s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 8s
2026-07-22 08:32:55 -03:00
26984db5a6 fix(k8s): support control-plane tests on slim runner
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 2s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 3s
2026-07-21 18:13:42 -03:00
260b0196f5 fix(k8s): harden control-plane backup safety
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 1s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Failing after 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 2s
2026-07-21 16:36:01 -03:00
dcbb8eddc2 feat(k8s): back up control plane configuration
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test Kubernetes backup scripts / test-automated-nfs-backup (push) Successful in 3s
Test Kubernetes backup scripts / test-k3s-control-plane-config-backup (push) Successful in 3s
2026-07-21 15:52:43 -03:00
8db1db888f adding api/v2 endpoints
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Haven Notify Build and Deploy / Test Haven Notify (push) Successful in 46s
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (push) Has been skipped
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 20s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 3s
2026-07-16 09:51:53 -03:00
f202be458a Merge pull request 'adding test containers' (#1) from test/add-test-containers into main
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 3s
Haven Notify Build and Deploy / Test Haven Notify (push) Successful in 37s
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (push) Has been skipped
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 30s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 2s
Reviewed-on: #1
2026-07-16 12:22:58 +00:00
3587950013 fixing pipeline
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 3s
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Successful in 1m11s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been skipped
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been skipped
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Successful in 10s
2026-07-16 09:17:40 -03:00
b1cdf15cc8 adding test containers
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 4s
Haven Notify Build and Deploy / Build Haven Notify Image (pull_request) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (PR) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (pull_request) Has been cancelled
Haven Notify Build and Deploy / Test Haven Notify (pull_request) Has been cancelled
2026-07-16 09:14:51 -03:00
0043c4ae00 changing ci pipelines to runner-slim image
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 8s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 30s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 3s
2026-07-15 06:23:40 -03:00
45556833c0 removing default from excluded namespaces
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 28s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 29s
2026-07-15 06:21:31 -03:00
43351abb11 k8s nfs backup: add rsync staging path and per-run staging cleanup
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 8s
- Add BACKUP_STAGING_PATH + RSYNC_BIN for staging before archive
- Add cleanup_run_staging to EXIT trap to remove staging dir
- Extend test harness for staging scenarios
2026-07-14 09:36:39 -03:00
2bd9e90f00 k8s nfs backup: exclude namespaces from scaling, isolate per-run state, harden failure handling
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 7s
- Add EXCLUDED_NAMESPACES (default kube-system,kube-public,kube-node-lease,default); excluded folders are backed up but never scaled
- Use a per-run state dir via mktemp -d so stale .state files from an earlier run can't leak into restores
- Partial folder-backup failure now exits 0 (only zero successes fails); retention runs even on partial failure
- Remove dead SCALE_TIMEOUT_SECONDS config; document SCALE_WAIT_SECONDS
- Add .gitattributes to keep *.sh at LF
- Extend test harness to 44 passing assertions covering exclusions, per-run state, partial/all-failed/empty scenarios
2026-07-14 09:02:06 -03:00
91572e4819 ci: align workflows with pipeline-actions composite actions
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 3s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 22s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 10s
- haven-notify.yaml: replace hand-rolled build+deploy (broken
  docker/build-push-action remote-builder path) with pipeline-actions
  build-and-push + deploy-restart; full Gitea uses: URLs; ubuntu-amd64.
- main.yaml / test-automated-nfs-backup.yaml: runner label
  ubuntu-latest -> ubuntu-amd64.
- haven-notify/README.md: point to infra/haven-notify.yaml in the
  haven repo; fix secret name to discord-webhook/HAVEN_WEBHOOK_URL.
2026-07-13 12:06:50 -03:00
9639c90799 ci: align workflows with pipeline-actions; move haven-notify spec to haven
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (push) Has been cancelled
- haven-notify.yaml: replace hand-rolled build+deploy (broken
  docker/build-push-action remote-builder path) with pipeline-actions
  build-and-push + deploy-restart composite actions; full Gitea uses:
  URLs; ubuntu-amd64 runner label.
- main.yaml / test-automated-nfs-backup.yaml: fix runner label
  ubuntu-latest -> ubuntu-amd64.
- Remove haven-notify/deploy manifest; it now lives in the haven
  homelab repo at infra/haven-notify.yaml. Update README accordingly.
2026-07-13 12:06:35 -03:00
d5fb0b7df6 small things 2026-07-13 09:34:57 -03:00
7b46d789ed refactor: make NFS backup script testable with minimal config vars, add test harness + Gitea workflow, address review nits
Some checks failed
Test automated-nfs-backup / test-automated-nfs-backup (push) Successful in 28s
Check scripts syntax / check-scripts-syntax (push) Successful in 1m2s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 2m5s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Failing after 23s
2026-07-13 08:59:38 -03:00
d78c4946bd Combine update.sh + clean.sh into housekeeping.sh with subcommand dispatch
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 38s
- Merges both scripts into a single unified housekeeping.sh
- Subcommands: update, clean, omz, all (default)
- New 'omz' command: runs 'omz update' with safe fallback if not installed
- Unknown subcommands print usage and exit 0
- Shared utility functions defined once at top
- Preserves all existing OS detection, cleanup, and reporting logic
2026-07-05 13:09:20 -03:00
4cdb79dcd5 Merge branch 'main' of git.ivanch.me:ivanch/server-scripts
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
2026-07-04 20:21:13 -03:00
94deda4372 simplifying automated nfs backup 2026-07-04 20:21:10 -03:00
8f701dc5c8 Fix bash syntax error in backup_folder return logic
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 31s
The arithmetic test `(( rc == 0 || (rc == 1 && -z "$filtered_output") ))`
breaks the bash parser when filtered_output is a multiline string. Split
the test so the -z check runs in a [[ ]] context instead.
2026-06-27 12:39:14 -03:00
2ce71f4fc1 add update.sh: OS detection + package list update
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 41s
- New update.sh: detects Alpine, Arch, Debian/Ubuntu, RHEL/Fedora/CentOS,
  openSUSE, Void, Gentoo and updates the package index only (no upgrades)
- clean.sh fixes:
  - Fix ((cleaned_count++)) exiting under set -e on first successful rm
  - Stop recursively deleting /var/cache and /root/.cache wholesale
  - Add CACHE_RETENTION_DAYS (7d) — clean_directory now only deletes
    files older than retention period instead of wiping everything
  - Remove dangerous rm -rf fallback in clean_directory
  - Narrow CACHE_DIRS to /var/cache/apt instead of /var/cache
  - Fix /home/*/.cache pattern to only target pip/npm caches
2026-06-25 19:42:51 -03:00
2f2ad759c1 more fixes
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
2026-06-21 12:50:29 -03:00
7ac6d16180 fixes and improves
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 40s
2026-06-21 12:09:14 -03:00
36a0444344 updating script
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 40s
2026-06-20 18:53:59 -03:00
941b0f97e3 fixing script
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 42s
2026-06-16 08:50:10 -03:00
4149e15fea small changes
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 30s
2026-05-26 20:05:12 -03:00
2de4ca75a1 fixing counter
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 50s
2026-05-26 15:50:10 -03:00
4870ede3ad adding k8s pack
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 34s
2026-05-21 12:45:07 -03:00
9db7273ae9 removing dns override options
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 23s
2026-05-16 11:29:32 -03:00
4976227ce8 updating dns override
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 4s
2026-05-16 11:16:59 -03:00
c800ec1888 adding dns override
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 41s
2026-05-16 11:09:03 -03:00
253c8abee3 removing QEMU requirement
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 36s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 11s
2026-03-13 22:45:07 -03:00
6650a615a5 fixing logo placement
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 42s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 12m29s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 18s
2025-10-06 22:14:42 -03:00
b1fb0889a4 updating things again
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 1s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 12m19s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 18s
2025-09-20 20:56:23 -03:00
61ade81d39 updating things
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 35s
2025-09-20 20:53:54 -03:00
96548f4773 small adjustments
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 36s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m45s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 19s
2025-09-07 11:19:56 -03:00
c34ee5185d fixing docker update
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
2025-08-24 21:07:13 -03:00
1489062943 removing auto update
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 36s
2025-08-24 20:59:49 -03:00
eb8ca78f4f tweaks to the scripts
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 41s
2025-08-24 20:55:14 -03:00
45567b2242 updating templates
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 2s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m0s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 11s
2025-08-23 22:01:01 -03:00
b0324ac9d8 forgot copy
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m0s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Failing after 17s
2025-08-23 21:36:32 -03:00
06cf78a4a6 adding error & deploy notification
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 3s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m1s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Failing after 11s
2025-08-23 20:44:32 -03:00
cd57837696 templates + arm64 build (slow)
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 36s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 10m5s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 17s
2025-08-23 20:27:49 -03:00
cedc435df0 maybe this gon work
All checks were successful
Check scripts syntax / check-scripts-syntax (push) Successful in 6s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Successful in 32s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Successful in 22s
2025-08-22 22:35:50 -03:00
aa7a9b8548 back to only amd64
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Failing after 20s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Has been skipped
2025-08-22 22:33:09 -03:00
11e2a28bd4 removing crossbuild on docker
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Haven Notify Build and Deploy / Build Haven Notify Image (push) Failing after 11m14s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Has been skipped
2025-08-22 22:00:11 -03:00
8b52bd2c45 yet anoter retry
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 7s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (push) Has been cancelled
2025-08-22 21:50:20 -03:00
442ff12039 new try
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 6s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (push) Has been cancelled
2025-08-22 21:41:31 -03:00
12920c10d4 anoter retry
Some checks failed
Check scripts syntax / check-scripts-syntax (push) Successful in 6s
Haven Notify Build and Deploy / Deploy Haven Notify (internal) (push) Has been cancelled
Haven Notify Build and Deploy / Build Haven Notify Image (push) Has been cancelled
2025-08-22 21:32:27 -03:00