Skip to content

Google Cloud SQL Proxy Action

Actions
Run the Google Cloud SQL Proxy in a GitHub Action s context
v1.4.0
Latest
Star (8)

Google Cloud SQL Proxy

Run the Google Cloud SQL Proxy in a GitHub Action’s context

license release

Usage

Prerequisites

  • Running Cloud SQL instance with a public IP address
  • Service Account with Role Cloud SQL Client
on:
  push:
    branches: [ master ]

jobs:
  db-migrate:
    runs-on: ubuntu-latest

    steps:
      - uses: ahmadnassri/action-google-cloud-sql-proxy@v1
        with:
          key: ${{ secrets.cloud-sql-json-key }}
          connection: my-project:northamerica-northeast1:database
          port: 5432

Inputs

input required default description
key - Service Account JSON Key
token - Service Account OIDC token (if using OIDC authentication)
connection - Cloud SQL connection name
port - Listening port (MySQL: 3306, PostgreSQL: 5432, SQL Server: 1433)
version 2.11.3 Cloud SQL Proxy Version
sleep 3 time between connection checks
attempts 10 number of total connection checks

Note

Note: One of key or token parameters or GOOGLE_APPLICATION_CREDENTIALS env var set is required for authentication.


Author: Ahmad Nassri • Twitter: @AhmadNassri

Google Cloud SQL Proxy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Run the Google Cloud SQL Proxy in a GitHub Action s context
v1.4.0
Latest

Google Cloud SQL Proxy Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.