diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -73,13 +73,22 @@ worker precaches assets; works offline after first visit. ## Deploy -- [ ] Deploy bare build + node systemctl service +Images are published to the private registry at +`container.registry.kagamino.dev`. The app password is supplied at runtime as +`AUTH_PASSWORD` in the VPS Docker Compose deployment. -The app password is supplied at runtime as `AUTH_PASSWORD` in the VPS Docker -Compose deployment. +Authenticate both Docker clients once: ```bash -docker build -t home-sveltekit . -docker save home-sveltekit | gzip | pv | ssh ubuntu@feed.kagamino.dev "gunzip | sudo docker load" -ssh ubuntu@feed.kagamino.dev "sudo docker compose up -d home" +docker login container.registry.kagamino.dev +ssh ubuntu@feed.kagamino.dev "sudo docker login container.registry.kagamino.dev" ``` + +Build, push, and deploy the latest image with: + +```bash +mise run deploy +``` + +The deploy script starts the registry, builds and pushes the image, then pulls +and restarts only the `home` service on the VPS. |
