From 7ae4ac2ee3dc98890d146b74aee1d8e4cdc9581b Mon Sep 17 00:00:00 2001 From: Lance Walters Date: Thu, 19 Nov 2026 23:36:56 -0500 Subject: [PATCH] =?UTF-8?q?docs(osint):=20CI=20builds=20the=20amd64=20clus?= =?UTF-8?q?ter=20images=20now=20=E2=80=94=20retire=20the=20manual-build=20?= =?UTF-8?q?instructions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/base/osint/README.md | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/apps/base/osint/README.md b/apps/base/osint/README.md index 9479733..fad61ac 100644 --- a/apps/base/osint/README.md +++ b/apps/base/osint/README.md @@ -22,18 +22,30 @@ co-location + local-path PVs). ## Images -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). +**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. ```bash -# from the manifests repo root; build the merge sha, not whatever the checkout has +# fallback only — the normal path is: let CI build, then pin the tag here 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"