feat: complete TokenWatch implementation with Docker, GH actions, and Live Sync
Build and Push Docker Image / build-and-push (push) Canceled after 0s

This commit is contained in:
Jannik committed 2026-08-28 16:35:08 +02:00
1 parent d9c4c5e123
commit eaec6ed5c8
36 files changed
+1932 -55

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
# TokenWatch Deployment for Jannik-Cloud
To deploy TokenWatch to your Jannik-Cloud, follow these steps:
1. Push the `TokenWatch` repository to GitHub (`github.com/orfelorfel23/TokenWatch`).
2. The included GitHub Action (`.github/workflows/docker.yml`) will automatically build the Docker image and push it to `ghcr.io/orfelorfel23/tokenwatch:latest`.
3. In your `Jannik-Cloud` repository, copy the contents of this `deployment-template` directory into `services/tokenwatch/`.
4. Run `bash generate-env.sh` inside `services/tokenwatch/` on your server to generate the database credentials.
5. Commit `.env.age`, `docker-compose.yml`, `tokenwatch.caddy`, and `service.enabled` to `Jannik-Cloud`.
6. Run `sudo bash deploy_script.sh` on the server!
**Local Sync Setup:**
On your Windows PC where Antigravity IDE runs, open the Windows Task Scheduler.
- Create a new task that runs every 30 minutes.
- Action: Start a program
- Program: `powershell`
- Arguments: `-ExecutionPolicy Bypass -File "C:\GitHub\TokenWatch\Push-AntigravityQuota.ps1"`
Before running it for production, edit `C:\GitHub\TokenWatch\tokenwatch-sync.js` locally and change the `url` to point to your new cloud endpoint:
`const url = 'https://tokenwatch.orfel.de/api/webhook/antigravity';`