commit c26e07e067cebe9ec37609383effec1eed905650
parent 44be6c3100ab8152c1635797b569e5fa2c603d70
Author: Damian Myrda <damian@prime8.dev>
Date: Tue, 20 Oct 2026 22:30:53 +0000
chore: drop GitLab CI and document git repo env
Deploys now come from a post-receive hook. Replace GITLAB_HOST with
GIT_REPOS_DIR and GIT_WEB_BASE in env.example and document them.
Diffstat:
3 files changed, 21 insertions(+), 29 deletions(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
@@ -1,28 +0,0 @@
-stages:
- - verify
- - deploy
-
-verify:
- stage: verify
- image: golang:1.23
- script:
- - go run ./cmd/buildjs
- - go test ./...
- only:
- - master
-
-deploy:
- stage: deploy
- needs:
- - verify
- image:
- name: curlimages/curl:8.8.0
- entrypoint: [""]
- script:
- - |
- curl --fail --show-error --silent -X POST "${DOKPLOY_DEPLOY_URL}" \
- -H "Content-Type: application/json" \
- -H "X-Gitlab-Event: Push Hook" \
- -d '{"ref": "refs/heads/master"}'
- only:
- - master
diff --git a/README.md b/README.md
@@ -31,3 +31,22 @@ Build Docker image:
```sh
docker build -t prime8dev .
```
+
+## Projects
+
+Project READMEs and commit dates are read from local bare git repos with
+`git` (no API). Project pages link to the [stagit](https://codemadness.org/stagit.html)
+site.
+
+| Env | Default | Purpose |
+| --- | --- | --- |
+| `GIT_REPOS_DIR` | `/srv/git/repos` | Bare repos live at `$GIT_REPOS_DIR/<repo>.git` |
+| `GIT_WEB_BASE` | `https://git.prime8.dev` | stagit base: `<base>/<repo>/`, `file/<path>.html`, `raw/<path>` |
+
+In Docker, bind-mount the repos read-only, e.g.
+`-v /srv/git/repos:/srv/git/repos:ro`. The image sets
+`safe.directory '*'` so repos owned by another uid are readable.
+
+## Deploy
+
+Deploys are triggered by a `post-receive` hook on the bare repo.
diff --git a/env.example b/env.example
@@ -3,5 +3,6 @@ SSH_PORT=22
WEB_PORT=3000
TERM=xterm-256color
COLORTERM=truecolor
-GITLAB_HOST=https://git.prime8.dev
+GIT_REPOS_DIR=/srv/git/repos
+GIT_WEB_BASE=https://git.prime8.dev
WAKATIME_API_KEY=your_wakatime_api_key_here