Centralize registry/host constants #4

Closed
opened 2026-07-04 19:08:28 +03:00 by oleks · 1 comment
Owner

git.oleks.space/oleks/nix-ci* images, git.oleks.space netrc machine, tcp://buildkit-arm64.infra.svc.cluster.local:1234 (the-eye/container.yaml:44,78), nameserver 169.254.20.10 (lxml-s390x:44) are inlined dozens of times. Introduce central variables/secrets or a documented constants convention.

git.oleks.space/oleks/nix-ci* images, git.oleks.space netrc machine, tcp://buildkit-arm64.infra.svc.cluster.local:1234 (the-eye/container.yaml:44,78), nameserver 169.254.20.10 (lxml-s390x:44) are inlined dozens of times. Introduce central variables/secrets or a documented constants convention.
oleks added this to the CI Scripts Optimization milestone 2026-07-04 19:08:28 +03:00
Collaborator

Documented at docs/constants.md (commit 4ab389d, on main). Since Woodpecker has no cross-repo variables or include:, the practical mechanism is: secret-shaped values → Woodpecker/org secret (already true for gitea_clone_token, registry_token, attic_token); public infra values (image refs, buildkit addresses, netrc host, node-selector pins) → a field in the per-repo manifest consumed by the generator/render.py generator (oleks/ci-scripts#2), which stamps them into every rendered pipeline. Full inventory + convention table is in the doc. Closing.

Documented at `docs/constants.md` (commit 4ab389d, on `main`). Since Woodpecker has no cross-repo variables or `include:`, the practical mechanism is: secret-shaped values → Woodpecker/org secret (already true for `gitea_clone_token`, `registry_token`, `attic_token`); public infra values (image refs, buildkit addresses, netrc host, node-selector pins) → a field in the per-repo manifest consumed by the `generator/render.py` generator (oleks/ci-scripts#2), which stamps them into every rendered pipeline. Full inventory + convention table is in the doc. Closing.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: oleks/ci-scripts#4