Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

MaxKelsen/action-google-cloud-sql-proxy

 
 

Repository files navigation

Google Cloud SQL Proxy

run the Google Cloud SQL Proxy in a GitHub Action's context

license release super linter semantic

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
token - Service Account OIDC token
connection - Cloud SQL connection name
port - Listening port (MySQL: 3306, PostgreSQL: 5432, SQL Server: 1433)
version 1.22.0-alpine Cloud SQL Proxy Version
sleep 3 time between connection checks
attempts 10 number of total connection checks

Author: Ahmad Nassri • Twitter: @AhmadNassri

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%