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