Add locations to todo items and automate Gitea deploy
Some checks failed
Redeploy Docker Compose / redeploy (push) Failing after 2s
Some checks failed
Redeploy Docker Compose / redeploy (push) Failing after 2s
This commit is contained in:
18
README.md
18
README.md
@@ -56,3 +56,21 @@ A React + TypeScript app with a local Node + SQLite backend for planning what to
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
## Gitea Auto Deploy (Docker Compose)
|
||||
When `main` is updated, Gitea Actions can redeploy your Docker Compose stack using:
|
||||
- Workflow file: `.gitea/workflows/redeploy-compose.yml`
|
||||
- Trigger: push to `main`
|
||||
- Remote commands run over SSH:
|
||||
- `git fetch`
|
||||
- `git checkout main`
|
||||
- `git pull --ff-only`
|
||||
- `docker compose pull`
|
||||
- `docker compose up -d --build --remove-orphans`
|
||||
|
||||
Set these repository secrets in Gitea:
|
||||
- `DEPLOY_HOST`: server hostname or IP
|
||||
- `DEPLOY_USER`: SSH username on the deployment server
|
||||
- `DEPLOY_PATH`: absolute path to this repo on the server
|
||||
- `SSH_PRIVATE_KEY`: private key for SSH auth (matching an authorized public key on the server)
|
||||
- `DEPLOY_PORT` (optional): SSH port, defaults to `22`
|
||||
|
||||
Reference in New Issue
Block a user