Merge pull request 'docs(osint): CI builds the amd64 cluster images (retire manual-build steps)' (#26) from wt/t_bcadd420-readme into master
This commit is contained in:
commit
91ce65637d
1 changed files with 22 additions and 10 deletions
|
|
@ -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-<sha>` 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-<sha12>`, 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-<sha>` 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-<sha>` 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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue