Repository navigation
plx deploy --environment: every app of the repo, in parallel, one block and one line per app - #69
Merged
davidjalbers merged 9 commits intoDec 2, 2026
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…224) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…vironment (PLX-224) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…LX-224) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ce, and each form refuses the other's flags (PLX-224) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ach app (PLX-224) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
davidjalbers
deleted the
davidjalbers/plx-224-plx-deploy-environment-every-app-of-the
branch
December 2, 2026 03:09
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.
plx deploywith neither host nor app deploys every app of the checkout that has a record in the environment, in parallel (Decisions § 4.1 to § 4.5).The form
plx deploy <host> <app> --image <ref>is unchanged.What it does
plx deploy --environment <name> --inventory <dir>; without--environmentthe environment follows from the branch (GITHUB_EVENT_NAME,GITHUB_REF_NAME).<prefix>/<app>:<commit>; the commit is--commitor the checkout's HEAD, the prefix isIMAGE_PREFIXorghcr.io/<owner of GITHUB_REPOSITORY>.deploy, each in a Context of its own whose narration is buffered and written as one block, under── <app> → <target> ──.✓or✗per app, in the order of the names; exit 1 if any failed; a throw in one app stops no other.environmentOf) moved fromplx-ci plantopackages/lib/src/deployTargets.ts;plx-ci planimports it from there and nothing else incli-cichanged.renderDeployof the command becamedescribeDeployin lib, since the repo form prints the same text.Decisions the issue did not make
--inventoryhas no default in the repo form; it is required.--image,--display-version,--commit-sha,--app-dirand--source(named as typed; an empty value counts as absent), and the one-app form refuses--inventoryand--commit: each app's image follows from the commit, and the display-version flags stay for the one-app form only.ssh://user@host[:port]) goes to ssh as it is, as the one-app form already does.PLEXUS_COMMIT_SHAwhere its compose file uses it (what the pipeline passes today); a--committhat is not a full 40-digit hash is refused once, in the command, as a usage error before any app is deployed.✗line naming the app and the file (the text ofuntargetedError).-vvis capped at-vinside an app's block, since subprocess output inherited from the terminal cannot be buffered.imageRef,imagePrefix) now exists in lib and, as before, incli-ci(imageName,imagePrefix); I left thecli-cicopy alone as instructed, the plan's deletion or the publish helper should collapse it.Size
+660 −38 lines in 10 files at 5e15bb9, of which tests +408 −9 and the rest +252 −29.
The non-test code is about 130 lines of
deployEnvironmentwith its types, 20 lines of header, 16 forimageRef/imagePrefix/describeDeploy, 13 for the moved rule, and the command with its refusals of the other form's flags.The additions stay because the verb is new behaviour; nothing was copied: the deploy of one app, the inventory reading and the per-app legs are the existing ones.
Verify
At 5e15bb9:
TURBO_FORCE=true mise run test: run by the author, exit 0, 7 of 7 tasks.plxinstalled in an empty project: the refusals of--commit, of the one-app flags in the repo form and of--inventoryand--commitin the one-app form, as usage errors with exit 2.mise run e2e, is run by the coordinator on this head before the merge.🤖 Generated with Claude Code