Tambah PRD portfolio (deploy, auto-deploy, catatan infra Gitea)
All checks were successful
Deploy Portfolio to Production / deploy (push) Successful in 8s
All checks were successful
Deploy Portfolio to Production / deploy (push) Successful in 8s
This commit is contained in:
32
PRD.md
Normal file
32
PRD.md
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
# PRD — Portfolio gosambi.uk
|
||||||
|
|
||||||
|
> Website portofolio statis untuk gosambi.uk dan www.gosambi.uk.
|
||||||
|
> Repo: `https://git.gosambi.uk/onie/portfolio` (single remote Gitea)
|
||||||
|
> Lokal: `D:\HomeLabs\portfolio`
|
||||||
|
> Terakhir diupdate: 2026-10-18
|
||||||
|
|
||||||
|
## 1. Gambaran Umum
|
||||||
|
|
||||||
|
Website statis (HTML tunggal) yang diserve via container `portfolio` (nginx:alpine).
|
||||||
|
Akses publik: `https://gosambi.uk` dan `https://www.gosambi.uk` → `http://localhost:8091`.
|
||||||
|
|
||||||
|
## 2. Deploy & Auto-Deploy
|
||||||
|
|
||||||
|
- Container: `portfolio` (nginx:alpine)
|
||||||
|
- File serve: `/DATA/AppData/portfolio/index.html` (di server)
|
||||||
|
- Compose: `/var/lib/casaos/apps/portfolio-docker-compose.yml`
|
||||||
|
- Sumber edit: `D:\HomeLabs\portfolio\index.html`
|
||||||
|
- Tunnel: `gosambi.uk` + `www.gosambi.uk` → `http://localhost:8091` (backup `config.yml.bak-portfolio`)
|
||||||
|
|
||||||
|
### Auto-deploy via Gitea Actions (2026-10-17)
|
||||||
|
- Source of truth: `https://git.gosambi.uk/onie/portfolio.git`
|
||||||
|
- Workflow: `.gitea/workflows/deploy.yml` — push ke `main` → runner SSH ke server → git pull `/home/gosa/portfolio` → copy `index.html` ke `/DATA/AppData/portfolio/`
|
||||||
|
- Secrets repo: DEPLOY_PRIVATE_KEY (ed25519 `scripts/deploy_key`), DEPLOY_HOST=192.168.5.190, DEPLOY_USER=gosa
|
||||||
|
- Pubkey deploy di `/home/gosa/.ssh/authorized_keys`
|
||||||
|
- Akun Gitea: `onie` / token API `d36ff8...d91e` (scope read:repository)
|
||||||
|
|
||||||
|
## 3. Catatan Infra Gitea (lihat juga rule.md)
|
||||||
|
|
||||||
|
- Runner (act_runner, container `gitea-runner`): sempat rusak karena `GITEA_INSTANCE_URL` menunjuk IP Tailscale lama → FIX ke `http://127.0.0.1:3033` + edit file `.runner` di volume.
|
||||||
|
- ROOT_URL: `https://git.gosambi.uk/` (fix 2026-10-18, sebelumnya IP Tailscale lama).
|
||||||
|
- Debug runner: `docker logs gitea-runner`
|
||||||
Reference in New Issue
Block a user