diff --git a/apps/base/osint/README.md b/apps/base/osint/README.md index fad61ac..9479733 100644 --- a/apps/base/osint/README.md +++ b/apps/base/osint/README.md @@ -22,30 +22,18 @@ co-location + local-path PVs). ## Images -**CI builds the cluster images.** Since PR #63 in `sirius/osint-dashboard`, -`.forgejo/workflows/build.yml` runs on the `amd64` runner (`runs-on: amd64`), -tags `amd64-`, and pushes straight into the in-cluster registry -(`forgejo.forgejo.svc.cluster.local:3000`, plain HTTP, whitelisted by -`--insecure-registry` on the runner's dind). Deploying is then just a pin -change here in `apps/base/osint/` — check the run's `## Pin in homek8s` summary -for the exact tags. Builds are **path-filtered**, so one image can be several -commits older than another: the app tag is normally master tip, the summarizer -tag is whichever commit last touched `news/summerizer/`. - -Do not build these by hand and push over a `:amd64-` tag: that replaces -CI's manifest, and Forgejo's registry garbage-collects the displaced digest, so -the CI artifact cannot be pulled back. If you need a tag rebuilt, dispatch CI -instead: `POST /api/v1/repos/sirius/osint-dashboard/actions/workflows/build.yml/dispatches` -with `{"ref":"master","inputs":{"rebuild_all":"true"}}`. - -Manual builds exist only as a historical fallback (pre-#63 images, or a CI -outage) — and then **build from a detached worktree at the merge sha, never -from the main checkout**: Legion's `~/osint-dashboard` sits on a feature -branch, and a `docker build` there once produced a `:amd64-` image that -carried the right tag and none of the commit's code. +The upstream CI (`.forgejo/workflows/build.yml` in `sirius/osint-dashboard`) +builds **arm64** for the Pi via `runs-on: docker`. The cluster is amd64, so the +cluster images were built on an amd64 host and pushed to the Forgejo registry +over a `kubectl -n forgejo port-forward svc/forgejo 3000:3000` (Cloudflare +rejects layer uploads ≳100 MB on the public hostname). **Build from a detached +worktree at the merge sha, never from the main checkout** — Legion's +`~/osint-dashboard` sits on a feature branch, and a `docker build` there once +produced a `:amd64-` image that carried the right tag and none of the +commit's code (that tag was deleted from the registry; `-r1` is the real build). ```bash -# fallback only — the normal path is: let CI build, then pin the tag here +# from the manifests repo root; build the merge sha, not whatever the checkout has git -C ~/osint-dashboard fetch origin git -C ~/osint-dashboard worktree add --detach /tmp/osint-build origin/master cd /tmp/osint-build && SHA=$(git rev-parse --short=12 HEAD) && TAG="amd64-$SHA"