Github action which will start a Google Cloud SQL Proxy as Docker container.
Set up the following resources manually in the Cloud Console or use a tool like Terraform.
- Running Cloud SQL instance with a public IP address
- Create Service Account with Role
Cloud SQL Clientand export a new JSON key.
| Variable | Description |
|---|---|
creds | Required Service Account JSON Key (not base64 encoded) |
instance | Required Cloud SQL connection name |
port | Listen on port, default 5432 |
proxy_version | Cloud SQL Proxy version, default 1.21.0 |
uses: mattes/gce-cloudsql-proxy-action@v1 with: creds: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} instance: my-project:us-central1:instance-1