chore(server): split gcloud sql proxy into a separate deployment (#5101)

After merge this pull request, need to change the `DATABASE_URL` in environment secrets (stable/beta) from `127.0.0.1` to `affine-cloud-sql-proxy`
This commit is contained in:
LongYinan
2023-12-15 13:28:12 +00:00
parent fc56a53acd
commit a3d4c5c709
17 changed files with 360 additions and 42 deletions

View File

@@ -4,7 +4,7 @@ on:
workflow_dispatch:
inputs:
flavor:
description: 'Build type (canary, beta, or stable)'
description: 'Build type (canary, beta, or stable or internal)'
type: string
default: canary
@@ -249,3 +249,4 @@ jobs:
CLOUD_SQL_IAM_ACCOUNT: ${{ secrets.CLOUD_SQL_IAM_ACCOUNT }}
STRIPE_API_KEY: ${{ secrets.STRIPE_API_KEY }}
STRIPE_WEBHOOK_KEY: ${{ secrets.STRIPE_WEBHOOK_KEY }}
STATIC_IP_NAME: ${{ secrets.STATIC_IP_NAME }}

View File

@@ -11,7 +11,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
name: Deploy
environment: production
environment: stable
steps:
- uses: actions/checkout@v4
- name: Publish