Rename shared backend to Bedrock [skip ci]

This commit is contained in:
2026-11-19 19:30:05 +08:00
parent 3bc3051383
commit 6fcfbf1def
21 changed files with 42 additions and 40 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
# 分支推送和 PR 检查:格式/编译、隔离数据库回归、固定版本 headless 客户端以及 HTTP smoke。
name: Foundry Go checks
name: Bedrock Go checks
on: [push, pull_request]
jobs:
@@ -19,7 +19,7 @@ jobs:
set -eu
test -z "$(gofmt -l cmd internal)"
go test -mod=readonly ./...
go build -mod=readonly -o bin/foundry ./cmd/foundry
go build -mod=readonly -o bin/bedrock ./cmd/bedrock
# 仅 push 可使用已配置秘密做占位码探测,不能替代真实用户 OAuth 登录。
- name: Check Slack OAuth configuration and endpoint
if: gitea.event_name == 'push'
@@ -98,7 +98,7 @@ jobs:
PORT: '18080'
run: |
set -eu
./bin/foundry &
./bin/bedrock &
server_pid=$!
trap 'kill "$server_pid" 2>/dev/null || true' EXIT
curl --silent --show-error --fail --retry 5 --retry-connrefused http://127.0.0.1:18080/healthz
+3 -3
View File
@@ -1,5 +1,5 @@
# 仅 main 的相关路径变更触发发布;工作分支验证不应运行此生产切换。
name: Deploy Foundry Core
name: Deploy Bedrock
on:
push:
branches: [main]
@@ -34,7 +34,7 @@ jobs:
set -eu
test -z "$(gofmt -l cmd internal)"
go test -mod=readonly ./...
CGO_ENABLED=0 go build -mod=readonly -o bin/foundry ./cmd/foundry
CGO_ENABLED=0 go build -mod=readonly -o bin/bedrock ./cmd/bedrock
# secrets 仅注入进程环境,项目/引导 JSON 来自 Actions Variables,release 再检查内容。
- name: Deploy and verify backend readiness
env:
@@ -44,4 +44,4 @@ jobs:
SLACK_CLIENT_SECRET: ${{ secrets.SLACK_CLIENT_SECRET }}
FOUNDRY_PROJECTS: ${{ vars.FOUNDRY_PROJECTS }}
FOUNDRY_ONBOARDING: ${{ vars.FOUNDRY_ONBOARDING }}
run: bash deploy/release.sh bin/foundry
run: bash deploy/release.sh bin/bedrock