docs(git-integration): multi-environment pattern and promotion guide#9953
Draft
lancamat1 wants to merge 1 commit into
Draft
docs(git-integration): multi-environment pattern and promotion guide#9953lancamat1 wants to merge 1 commit into
lancamat1 wants to merge 1 commit into
Conversation
lancamat1
force-pushed
the
docs/multi-environment
branch
from
July 17, 2026 11:45
884ad77 to
dbce6e8
Compare
Contributor
There was a problem hiding this comment.
All reported issues were addressed
Confidence score: 5/5
- Safe to merge after the addressed issues were fixed.
Shadow auto-approve: would not auto-approve because issues were found.
Re-trigger cubic
lancamat1
force-pushed
the
docs/multi-environment
branch
11 times, most recently
from
July 21, 2026 19:56
4a8980a to
d68eac6
Compare
lancamat1
force-pushed
the
docs/multi-environment
branch
3 times, most recently
from
July 21, 2026 20:11
fa4fc56 to
8fd55ed
Compare
Add two spokes under Git Integration for running separate dev/staging/prod Infrahub instances from a single repository: - multi-environment.mdx (concept): the all-read-only, branch-per-environment model, what moves through Git, Git-vs-Infrahub terminology, the staged promotion model, and reaching production safely. - promote-between-environments.mdx (how-to): register read-only repos per instance, author, the staged promotion flow (import into an Infrahub branch, review via proposed change), and an optional/experimental CI automation note. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
lancamat1
force-pushed
the
docs/multi-environment
branch
from
July 21, 2026 20:25
8fd55ed to
2bdff2e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds two spokes under Branches & Change Control → Git Integration documenting how to run separate development / staging / production Infrahub instances from a single Git repository, and how to promote changes between them.
docs/docs/git-integration/multi-environment.mdx— concept: the all-read-only, branch-per-environment model; what moves through Git (.infrahub.ymlcontent); Git-vs-Infrahub terminology; the staged promotion model (import into an Infrahub branch, review via a proposed change); and reaching production safely.docs/docs/git-integration/promote-between-environments.mdx— how-to: register a read-only repository per instance, author a change, the staged promotion flow, and an optional/experimental CI automation note.docs/sidebars.ts— two entries under Git Integration.Key points of the documented model
ref; no instance uses a read-writeRepository, and nothing is pushed back to Git.mainis a caveated side-note, not recommended.For reviewers
ref/commitonto the destination branch, which would repoint an instance'smain. That behavior is under review (internal ticket; relates to IFC-1361) — the docs deliberately keep production promotion manual until it's resolved.<repository-id>and host placeholders are intentional; the reader substitutes their own.Verification
refvsdefault_branch,CoreValidatorstate/conclusion,CoreProposedChange.validations,.infrahub.ymlimportable content).npm run buildpasses; all cross-links and anchors resolve; Vale/banned-qualifier scan clean.🤖 Generated with Claude Code
Summary by cubic
Adds docs for running multiple Infrahub environments from one Git repo using read-only repositories and a staged promotion workflow. Includes a concepts page and a step-by-step guide that adds a Tag
colorattribute and promotes it from dev to prod.docs/docs/git-integration/multi-environment.mdx(concepts): branch-per-environment viaref; what moves via.infrahub.yml; read-only repos import only on action (no polling); staged promotion via Infrahub branches and proposed changes; explicit schema retirement withstate: absent; rehearse production on a pre-prod from backup; avoid importing directly onmain.docs/docs/git-integration/promote-between-environments.mdx(how-to): register per-instance read-only repos (CoreReadOnlyRepositoryCreate); develop on an Infrahub branch by pointingrefto a Git feature branch (CoreReadOnlyRepositoryUpdateauto-imports); merge todevelop, then bring the merged result ontomainvia a proposed change; mirror flow to promotedevelop→mainon production; includes a production verify step; optional CI that pollsCoreProposedChange.validationsusingX-INFRAHUB-KEY.docs/sidebars.tswith “Multiple environments” and “Promote between environments” under Git Integration.Written for commit 2bdff2e. Summary will update on new commits.