Repository navigation
feat(infra): declare environment sources in the manifest - #124
Merged
Merged
Conversation
Staging follows pushes to main and production is promoted from staging, declared with piqueld's environment fields (piqueld#233) instead of imperative `piquelctl env` commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Problem
The manifest declared
stagingandproductiononly for their variables and visibility. Where each one deploys from had to be set up by hand withpiquelctl env create,env sourceandenv sync. Applying the manifest alone gave a singleproductionthat builtmain.Solution
piqueld#233 lets environment blocks declare their source, so the manifest now does:
Setup in
infra/README.mdis now a singleapp apply --deployplus the webhook. The threepiquelctl envcommands are gone, since piqueld now refuses them for environments the manifest declares.The live environments already match these sources (production promoted from staging, staging on
main). Once the daemon is upgraded, convergence should only mark them as declared.Testing
main'spiqueld-core. It readsstagingas followingmainwith sync on, andproductionas promoted fromstaging, with no errors.piquelctl app validatepasses against the running daemon. That daemon predates feat(auth): connected apps in the account API and CLI #233, so it didn't check the new fields.Note
Written by Claude Opus 5.5 in Claude Code (via T3 Code)
🤖 Generated with Claude Code