Skip to content

Commit fda74c7

Browse files
committed
cloud sql update
1 parent ebbf345 commit fda74c7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ jobs:
3939
- name: Replace app.yml secrets
4040
4141
env:
42-
POSTGRES_STRING: ${{ secrets.POSTGRES_STRING }}
42+
POSTGRES_STRING: ${{ secrets.POSTGRES_STRING }} # Format: postgres://user:password@/cloudsql/INSTANCE_CONNECTION_NAME/db_name
4343
PROJECT_ID: ${{ secrets.PROJECT_ID }}
44+
SQL_INSTANCE_CONNECTION_NAME: ${{ secrets.SQL_INSTANCE_CONNECTION_NAME}}
4445
with:
4546
app_yaml_path: app.yaml
4647

app.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ automatic_scaling:
2222
# Network configuration
2323
network:
2424
instance_tag: solana-devnet-faucet-backend
25-
name: default
25+
name: default
26+
27+
# Cloud SQL Auth Proxy configuration
28+
beta_settings:
29+
cloud_sql_instances: $SQL_INSTANCE_CONNECTION_NAME

0 commit comments

Comments
 (0)