docs(osint): build the merge sha from a detached worktree; note the deleted decoy tag

This commit is contained in:
Lance Walters 2026-11-13 21:13:46 -05:00
commit c073ec9308

View file

@ -24,13 +24,19 @@ co-location + local-path PVs).
The upstream CI (`.forgejo/workflows/build.yml` in `sirius/osint-dashboard`) 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 builds **arm64** for the Pi via `runs-on: docker`. The cluster is amd64, so the
images above were built on an amd64 host and pushed to the Forgejo registry 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 over a `kubectl -n forgejo port-forward svc/forgejo 3000:3000` (Cloudflare
rejects layer uploads ≳100 MB on the public hostname). 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).
```bash ```bash
cd ~/osint-dashboard # from the manifests repo root; build the merge sha, not whatever the checkout has
SHA=$(git rev-parse --short=12 HEAD) 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"
docker build -f Dockerfile -t 127.0.0.1:3000/sirius/osint-dashboard:$TAG . docker build -f Dockerfile -t 127.0.0.1:3000/sirius/osint-dashboard:$TAG .
docker build -f news/scraper/Dockerfile -t 127.0.0.1:3000/sirius/osint-news-scraper:$TAG news/scraper docker build -f news/scraper/Dockerfile -t 127.0.0.1:3000/sirius/osint-news-scraper:$TAG news/scraper
docker build -f news/summerizer/Dockerfile -t 127.0.0.1:3000/sirius/osint-news-summarizer:$TAG news/summerizer docker build -f news/summerizer/Dockerfile -t 127.0.0.1:3000/sirius/osint-news-summarizer:$TAG news/summerizer