# Facts Repo Suggestions Pending suggestions to push back to claude-code-facts. --- ## 2026-06-21: Buildx + registry buildcache DOES work on the TrueNAS Gitea runner **Target file:** gitea-python-ci-cd.md **Section:** "## 7. Docker Build" and "## 9. Gitea vs GitHub Actions Differences" **Reason:** The doc's compatibility table says "Docker Buildx — May not work (runner networking)" and the Docker section uses plain `docker build` + `docker push --all-tags`. In practice, `docker/setup-buildx-action@v3` + `docker/build-push-action@v5` with `cache-from/to: type=registry,ref=$REGISTRY:buildcache,mode=max` (and `type=gha` for no-push CI builds) works on the current `git.dolgolyov-family.by` runner — verified in the notify-bridge and tiny-forge pipelines. Recommend adding a "buildx path (preferred when it works)" variant alongside the conservative plain-`docker build` path, and softening the row to "Usually works; falls back to plain `docker build`." --- ## 2026-06-21: Quote `if:` expressions that contain a colon **Target file:** gitea-python-ci-cd.md **Section:** "## 9. Gitea vs GitHub Actions Differences" (or a new "Workflow gotchas") **Reason:** A common skip-guard `if: ${{ !startsWith(gitea.event.head_commit.message, 'chore: release v') }}` contains `: ` inside the literal, which makes strict YAML parsers (PyYAML, and validators) treat it as a nested mapping and error with "mapping values are not allowed here". Gitea's parser is lenient and accepts the unquoted form, but it fails any standard YAML lint. Fix: wrap the whole expression in double quotes — `if: "${{ ... 'chore: release v' ... }}"`. --- ## 2026-06-21: Add a "Go on Gitea" CI/CD note **Target file:** gitea-python-ci-cd.md (or a new gitea-go-ci-cd.md) **Section:** new **Reason:** The doc is Python-only. The same release/Docker patterns apply to Go services with these deltas: pin `setup-go` to match the `go` directive in `go.mod` (a mismatch silently triggers a slow `GOTOOLCHAIN=auto` toolchain download); gate on `go vet ./...` + `go test ./internal/...`; multi-stage Dockerfile with `--mount=type=cache,target=/go/pkg/mod` and `target=/root/.cache/go-build` (requires `# syntax=docker/dockerfile:1.7`); `CGO_ENABLED=0 -ldflags="-s -w"` static binary on an `alpine` runtime with a non-root user and a `wget --spider` HEALTHCHECK.