Skip to content

Commit

Permalink
try v2
Browse files Browse the repository at this point in the history
  • Loading branch information
enocom committed Oct 16, 2023
1 parent 888ad75 commit 085b428
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ jobs:
POSTGRES_PASS:${{ secrets.GOOGLE_CLOUD_PROJECT }}/POSTGRES_PASS
POSTGRES_DB:${{ secrets.GOOGLE_CLOUD_PROJECT }}/POSTGRES_DB
- uses: mattes/gce-cloudsql-proxy-action@v1
with:
creds: ${{ steps.auth.outputs.credentials_file_path }}
instance: ${{ steps.secrets.outputs.POSTGRES_CONNECTION_NAME }}


- name: Enable cloud SQL proxy to temp instance
run: |
curl -o cloud-sql-proxy https://storage.googleapis.com/cloud-sql-connectors/cloud-sql-proxy/v2.7.0/cloud-sql-proxy.linux.amd64
chmod +x cloud-sql-proxy
nohup ./cloud-sql-proxy ${{ steps.secrets.outputs.POSTGRES_CONNECTION_NAME }} > cloud-sql-proxy.out 2> cloud-sql-proxy.err < /dev/null &
echo $!
echo CLOUD_SQL_PROXY_PID=$(echo $!) >> $GITHUB_ENV

0 comments on commit 085b428

Please sign in to comment.