Deploy Rust Bedrock from main on the existing host

This commit is contained in:
2026-11-30 00:50:58 +08:00
parent a01bac3a48
commit 351cc156dd
4 changed files with 95 additions and 0 deletions
+4
View File
@@ -9,3 +9,7 @@ Deployments pass the path of a JSON configuration file to the Bedrock executable
Keep `BEDROCK_S3_SECRET_KEY`, `BEDROCK_S3_ENDPOINT`, and `BEDROCK_S3_ACCESS_KEY` scoped to the deployment that consumes object storage. The SQL renderer and crates have no S3 dependency.
Pull requests currently run without an automatic storage check. The optional `ci/check-sql.sh` script uses isolated database containers and generated fixture credentials when run on an approved remote runner.
## Release on the existing deployment host
Gitea builds a release on `ces-control` when a commit lands on `main`. The deploy step renders the private PostgreSQL configuration and runs the current one-shot Rust storage initializer on the existing `endoleap-dev_default` network. It publishes releases under `/opt/endoleap-infra/bedrock-rust/releases` and switches `/opt/endoleap-infra/bedrock-rust/current` after successful initialization. The Go service retains its own containers and routes.