docs(osint): CI builds the amd64 cluster images (retire manual-build steps) #26
1 changed files with 22 additions and 10 deletions
docs(osint): CI builds the amd64 cluster images now — retire the manual-build instructions
commit
7ae4ac2ee3
|
|
@ -22,18 +22,30 @@ co-location + local-path PVs).
|
||||||
|
|
||||||
## Images
|
## Images
|
||||||
|
|
||||||
The upstream CI (`.forgejo/workflows/build.yml` in `sirius/osint-dashboard`)
|
**CI builds the cluster images.** Since PR #63 in `sirius/osint-dashboard`,
|
||||||
builds **arm64** for the Pi via `runs-on: docker`. The cluster is amd64, so the
|
`.forgejo/workflows/build.yml` runs on the `amd64` runner (`runs-on: amd64`),
|
||||||
cluster images were built on an amd64 host and pushed to the Forgejo registry
|
tags `amd64-<sha12>`, and pushes straight into the in-cluster registry
|
||||||
over a `kubectl -n forgejo port-forward svc/forgejo 3000:3000` (Cloudflare
|
(`forgejo.forgejo.svc.cluster.local:3000`, plain HTTP, whitelisted by
|
||||||
rejects layer uploads ≳100 MB on the public hostname). **Build from a detached
|
`--insecure-registry` on the runner's dind). Deploying is then just a pin
|
||||||
worktree at the merge sha, never from the main checkout** — Legion's
|
change here in `apps/base/osint/` — check the run's `## Pin in homek8s` summary
|
||||||
`~/osint-dashboard` sits on a feature branch, and a `docker build` there once
|
for the exact tags. Builds are **path-filtered**, so one image can be several
|
||||||
produced a `:amd64-<sha>` image that carried the right tag and none of the
|
commits older than another: the app tag is normally master tip, the summarizer
|
||||||
commit's code (that tag was deleted from the registry; `-r1` is the real build).
|
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
|
```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 fetch origin
|
||||||
git -C ~/osint-dashboard worktree add --detach /tmp/osint-build origin/master
|
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"
|
cd /tmp/osint-build && SHA=$(git rev-parse --short=12 HEAD) && TAG="amd64-$SHA"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue