Run db-migrate on Cloud SQL DB

I’m having trouble figuring out how to get my final db-migrate command to connect successfully to my google cloud postgres DB.

https://db-migrate.readthedocs.io/en/latest/

#name: SQL-Migrations

on:
  push:
    branches:
      - build2

env: # <--- here
  DB_USER: ${{ secrets.DB_USER }}
  DB_PASS: ${{ secrets.DB_PASS }}
  DB_NAME: ${{ secrets.DB_NAME }}
  DB_HOST_PROD: ${{ secrets.DB_HOST_PROD }}
  DB_PORT: ${{ secrets.DB_PORT }}
  DB_SCHEMA_NAME: ${{ secrets.DB_NAME }}

jobs:
  setup_gcloud:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Setup node 16
        uses: actions/setup-node@v1
        with:
          node-version: 16.x
      - name: Run yarn from GraphQL to give us db-migrate
        run: |
          cd src/graphql && yarn
      - name: Migrate
        run: |
          cd src/graphql && node node_modules/db-migrate/bin/db-migrate up:production -e prod

Error: AssertionError [ERR_ASSERTION]: ifError got unwanted exception: connect ETIMEDOUT ***:***

I think it’s because it’s not properly connecting to the postgres cloud database.

I don’t know if I need more than just this so that it can talk to my cloud DB or what, but it’s not able to auth. I have a feeling I don’t have all I need here to communicate to my DB. I am passing environment variables with authentication info for postgres but what else does google cloud need for my command to talk to it?