Skip to content

Github action which will start a Google Cloud SQL Proxy as Docker container.

License

Notifications You must be signed in to change notification settings

alikbo/gce-cloudsql-proxy-github-actions

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Google Cloud SQL Proxy

Github action which will start a Google Cloud SQL Proxy as Docker container.

Prerequisites

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 Client and export a new JSON key.

Github Action Inputs

Variable Description
creds Required Service Account JSON Key (not base64 encoded)
instance Required Cloud SQL connection name
ip Listen on ip, default 0.0.0.0
port Listen on port, default 5432
proxy_version Cloud SQL Proxy version, default 1.33.2

Example Usage

uses: alikbo/gce-cloudsql-proxy-github-actions@v1
with:
  creds: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}
  instance: my-project:us-central1:instance-1

About

Github action which will start a Google Cloud SQL Proxy as Docker container.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages