Skip to content

feat(deploy): add single deploy script and manual CI workflow - #128

Merged
prdai merged 9 commits into
mainfrom
feat/issue-40-aws-approach
Nov 26, 2026
Merged

prdai merged 9 commits into
mainfrom
feat/issue-40-aws-approach

Conversation

@prdai

@prdai prdai commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

what changed

  • Added scripts/deploy.sh, a dependency-ordered entrypoint for both trees, split into scripts/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).
  • Added .github/workflows/deploy.yml, a manual workflow_dispatch with no inputs. It deploys both trees, every unit, including the secure registry-service image, with OIDC auth.
  • Units deploy in dependency-ordered waves; every unit in a wave runs at the same time.
  • The runner is a 2 vCPU arm64 instance; the heavy eif-build-base cargo step gets the runner to itself.
  • Added the rads host defaults to .env.example and linked docs/deploy.md from 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

  • Ran scripts/deploy.sh deploy all against the live account (615299756331, ap-southeast-2): exit 0 in 393s, all 20 units.
  • Every serverless stack reported deployed or no changes. Both transparency portals built and synced. The verifier ran its two-pass truststore deploy.
  • The registry image built, shipped over SSH, and restarted on the CSAV host: service active, container up, http=200.
  • After the lib split, reran secure/result-consumer against the live account: exit 0, deploy completed.
  • Fixes the live run forced: wildcard ACM certificate matching, packages/common dependency install before packaging, portal install before build, and a derive-env.sh bug that passed two Lambda names as one.
  • Static: bash -n, shellcheck on every script and lib module, yamllint, actionlint pass.
  • Not run: the GitHub Actions workflow itself, which has never executed.

notes

  • deploy all puts 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 to blacksmith-4vcpu-ubuntu-2404-arm if it struggles.
  • The registry image builds on arm64 natively in CI. Blacksmith's Docker layer cache is not wired because the Dockerfile's base images are built locally.
  • The local run required .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

prdai and others added 8 commits November 19, 2026 20:48
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
prdai marked this pull request as ready for review November 26, 2026 02:51
@prdai
prdai merged commit e1d46ad into main Nov 26, 2026
2 checks passed
@prdai
prdai deleted the feat/issue-40-aws-approach branch November 26, 2026 02:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: single deploy script and deploy-on-merge pipeline

1 participant