Commit Graph

17 Commits

Author SHA1 Message Date
rainyy21 cf62f25ab6 Keep data/ and config/ out of the Docker build context
The self-updater's build failed reading 0600 .env files under data/local,
and they shouldn't end up in the image anyway.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:25:26 -05:00
rainyy21 96e608126b add a login and encrypt the .env so people can't get in and still the api key 2026-11-11 17:01:25 -05:00
rainyy21 f662e647d7 wire up the web UI and fix config editing
- merge the web UI into the watcher: one request queue for the CLI and the
  website (check/deploy/start/stop/remove/add), validated by the watcher
- stop/start pause a repo via `paused` in repos.yml; add `gw stop`/`gw start`
- copy per-repo local files (.env, overrides) into the clone before deploys
- run the website as a second container with no docker socket or tokens
- move repos.yml editing into repos_file.py, shared by cli and watcher
- fix: removing the last repo wrote invalid YAML
- fix: long URLs were wrapped onto their own line
- add .dockerignore so .venv and .env aren't sent to the docker daemon

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-11 16:33:56 -05:00
rainyy21 a54c625d66 Self-update from a configurable remote (SELF_REMOTE), use gitea
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:30:38 -05:00
rainyy21 5f70813202 Move web app up a level, live dashboard refresh, self-update
- web: move app/web/web/* to app/web/, drop the old standalone compose
  file and watcher_additions.py (merged into watcher.py)
- web: /api/version fingerprint of state, config and queued requests;
  the page polls it every 2s and reloads as soon as the watcher acts
- watcher: self-update. When its own branch has a new commit and the
  checkout is clean, start a one-off gitops-watcher-updater container
  that runs git pull + docker compose up -d --build on the host checkout
- watcher: refuse to deploy/stop/remove its own compose project, which
  used to stop the watcher itself mid-way

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 16:17:05 -05:00
rainyy21 999f852805 forgot to add the .env.example 2026-11-11 09:53:31 -05:00
rainyy21 218d1a1366 added ed webhook to it 2026-11-11 09:50:38 -05:00
rainyy21 27e1c0047f build a website 2026-11-11 09:03:30 -05:00
rainyy21 92aba3bf38 finish the ain watcher command and finish the cli, modify the requirement and started a web template, modify the docker file 2026-11-11 00:16:45 -05:00
rainyy21 ddef48ad6b improve on it so now it check if there any update if there is pull and push it to the container 2026-11-10 12:32:50 -05:00
rainyy21 7b3bf37108 fix up some typo on the docker file and add enviroment 2026-11-10 12:32:08 -05:00
rainyy21 8cddb79686 added github key to .env.example 2026-11-10 12:31:05 -05:00
rainyy21 ce29d9ede7 fix up the docker file since i move file aroumd 2026-11-10 10:02:24 -05:00
rainyy21 287ea4b90c move the watcher to a app file and set up docker file and docker compose file 2026-11-09 13:39:25 -05:00
rainyy21 e12e48aac0 forgot something in gitignore 2026-11-09 12:59:54 -05:00
rainyy21 a919fb3341 complete the main code 2026-11-09 12:59:07 -05:00
rainyy21 92039d88c2 add the requirement and .gitignore 2026-11-02 10:06:33 -05:00