docs(osint): build the merge sha from a detached worktree; note the deleted decoy tag
This commit is contained in:
parent
28f09d5809
commit
c073ec9308
1 changed files with 10 additions and 4 deletions
|
|
@ -24,13 +24,19 @@ co-location + local-path PVs).
|
|||
|
||||
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
|
||||
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
|
||||
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
|
||||
cd ~/osint-dashboard
|
||||
SHA=$(git rev-parse --short=12 HEAD)
|
||||
# from the manifests repo root; build the merge sha, not whatever the checkout has
|
||||
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 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue