add deploy
Build / Build & push landing (push) Successful in 15s
Build / Deploy to prod (push) Successful in 5s
Build / Notify Max (push) Successful in 1s

This commit is contained in:
2026-06-15 13:47:50 +07:00
parent 09e7a2b526
commit 75134b6fac
6 changed files with 152 additions and 2 deletions
+31
View File
@@ -0,0 +1,31 @@
# Deploy — spaceshell.ru
Front nginx (`proxy`) → landing container, plus `/download/spacesh.dmg`.
## Layout on the server (`$SSH_REMOTE_DIR`, e.g. `/opt/spacesh`)
```
docker-compose.yaml # synced by CI
proxy.conf # synced by CI
download/spacesh.dmg # uploaded locally via `make deploy-dmg`
```
## One-time server setup
```bash
# The landing image lives in a private registry — log the server in once:
docker login git.realmanual.ru
mkdir -p $SSH_REMOTE_DIR/download
```
## What runs where
- **Landing image + compose deploy** → automatic in `.gitea/workflows/build.yaml`
on push to `landing/**`. CI builds/pushes the image, scps `deploy/*` to the
server, then `docker compose pull && up -d`.
- **DMG** → built on macOS, uploaded by hand: `make deploy-dmg`
(sets the stable `download/spacesh.dmg`). Tauri can't build a macOS bundle in CI.
## Gitea secrets required
`SSH_HOST`, `SSH_USER`, `SSH_REMOTE_DIR`, `SSH_KEY` (private key, key-based auth).