ci: inline DATABASE_URL in workflow (volcano RDS internal endpoint)
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 6m0s

Matches the AirGate convention of putting infra credentials directly in
the deploy yaml — no Gitea Secrets configuration required, push-to-deploy
just works.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
zyc 2026-05-13 15:28:55 +08:00
parent 2c3357e33d
commit b3bdb60c81

View File

@ -93,9 +93,9 @@ jobs:
--docker-password="${{ env.CR_PASSWORD_ACTIVE }}" \
--dry-run=client -o yaml | kubectl apply -f -
# 2) 应用运行时 Secret数据库连接串
# 2) 应用运行时 Secret数据库连接串:火山 RDS 内网地址
kubectl create secret generic cyberstar-env \
--from-literal=DATABASE_URL='${{ secrets.DATABASE_URL }}' \
--from-literal=DATABASE_URL='mysql://zyc:Zyc188208@mysql8351f937d637.rds.ivolces.com:3306/cyberstar?charset=utf8mb4' \
--dry-run=client -o yaml | kubectl apply -f -
# 3) Apply manifests