Repository navigation
feat(deploy): add single deploy script and manual CI workflow - #128
Merged
Merged
Conversation
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
prdai
marked this pull request as ready for review
November 26, 2026 02:51
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 changed
scripts/deploy.sh, a dependency-ordered entrypoint for both trees, split intoscripts/lib/{common,aws,env,units}.sh. It derives queue URLs and ARNs, table names, bucket names, role ARNs, and the default VPC from CloudFormation outputs, and looks up regional ACM certificates by hostname (including wildcards)..github/workflows/deploy.yml, a manualworkflow_dispatchwith no inputs. It deploys both trees, every unit, including the secure registry-service image, with OIDC auth.eif-build-basecargo step gets the runner to itself..env.exampleand linkeddocs/deploy.mdfrom the README and getting-started guide.why
Deploys were manual per service and the CloudFormation stacks lived in separate sub-Makefiles. This gives one path for both trees and a manual CI run, with no merge trigger.
verification
scripts/deploy.sh deploy allagainst the live account (615299756331,ap-southeast-2): exit 0 in 393s, all 20 units.http=200.secure/result-consumeragainst the live account: exit 0, deploy completed.packages/commondependency install before packaging, portalinstallbefore build, and aderive-env.shbug that passed two Lambda names as one.bash -n,shellcheckon every script and lib module,yamllint,actionlintpass.notes
deploy allputs both trees in one wave set, up to ~13 units at once. Fast on a large host (6.5 min on 6 vCPU / 31 GB). Tight on 2 vCPU / 6 GB; bump toblacksmith-4vcpu-ubuntu-2404-armif it struggles..env, the CSAV SSH key, the registry TLS client cert, and GHCR auth; all are gitignored and supplied as repository secrets in CI.Closes #40