Skip to content

feat(infra): declare environment sources in the manifest - #124

Merged
PiquelChips merged 1 commit into
mainfrom
feat/declared-environments
Oct 15, 2026
Merged

PiquelChips merged 1 commit into
mainfrom
feat/declared-environments

Conversation

@PiquelChips

Copy link
Copy Markdown
Member

Problem

The manifest declared staging and production only for their variables and visibility. Where each one deploys from had to be set up by hand with piquelctl env create, env source and env sync. Applying the manifest alone gave a single production that built main.

Solution

piqueld#233 lets environment blocks declare their source, so the manifest now does:

[spec.environments.production]
promote_from = "staging"

[spec.environments.staging]
sync = true   # follows pushes to main, spec.manifest's branch

Setup in infra/README.md is now a single app apply --deploy plus the webhook. The three piquelctl env commands 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

  • Loaded the manifest with piqueld main's piqueld-core. It reads staging as following main with sync on, and production as promoted from staging, with no errors.
  • piquelctl app validate passes 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

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>
@PiquelChips
PiquelChips merged commit a851987 into main Oct 15, 2026
7 checks passed
@PiquelChips
PiquelChips deleted the feat/declared-environments branch October 15, 2026 17:07
@PiquelChips PiquelChips self-assigned this Oct 15, 2026
@PiquelChips PiquelChips added the infra Deployment and infrastructure label Oct 15, 2026
@PiquelChips PiquelChips added this to the 0.1 milestone Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Deployment and infrastructure

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant