{"id":7743099,"name":"mattes/gce-cloudsql-proxy-action","ecosystem":"actions","description":"Start Google CloudSQL Proxy","homepage":"","licenses":"unlicense","normalized_licenses":["Unlicense"],"repository_url":"https://github.com/mattes/gce-cloudsql-proxy-action","keywords_array":["cloudsql","cloudsql-proxy","docker","github-action","google","google-cloud","google-cloud-sql","google-cloud-sql-proxy"],"namespace":"mattes","versions_count":3,"first_release_published_at":"2020-09-22T07:45:41.000Z","latest_release_published_at":"2021-04-12T18:30:34.000Z","latest_release_number":"v1.0.1","last_synced_at":"2026-04-20T05:47:51.455Z","created_at":"2023-05-17T08:43:52.347Z","updated_at":"2026-04-20T05:47:51.456Z","registry_url":"https://github.com/mattes/gce-cloudsql-proxy-action","install_command":null,"documentation_url":null,"metadata":{"name":"Google Cloud SQL Proxy","description":"Start Google CloudSQL Proxy","branding":{"icon":"database","color":"red"},"inputs":{"creds":{"description":"Contents of a Service Account JSON Key","required":true},"instance":{"description":"CloudSQL instance","required":true},"port":{"description":"Listen on port","required":false,"default":5432},"proxy_version":{"description":"CloudSQL Proxy Version","required":false,"default":"1.21.0"}},"runs":{"using":"composite","steps":[{"name":"Start Google Cloud SQL Proxy","shell":"bash","run":"# write google application credentials to a temporary file to be used inside the container\nmkdir -p /tmp/gce-cloudsql-proxy\necho '${{ inputs.creds }}' \u003e /tmp/gce-cloudsql-proxy/key.json\n\n# start container\ndocker run -d --net host --name gce-cloudsql-proxy --restart on-failure \\\n-v /tmp/gce-cloudsql-proxy:/tmp/gce-cloudsql-proxy \\\ngcr.io/cloudsql-docker/gce-proxy:${{ inputs.proxy_version }} \\\n/cloud_sql_proxy \\\n  -credential_file /tmp/gce-cloudsql-proxy/key.json \\\n  -dir /tmp \\\n  -instances=${{ inputs.instance }}=tcp:127.0.0.1:${{ inputs.port }}\n\n# wait until connections are accepted\nsleep 3\nisready=0\nfor i in {1..10}; do\n  echo \"Wait for connections to be ready ... $i/10\"\n  (${{ github.action_path }}/wait-for-it.sh --quiet --timeout=3 --host=127.0.0.1 --port=${{ inputs.port }} || exit $?) \u0026\u0026 true # escape bash's pipefail\n  isready=$?\n  if [[ $isready -eq 0 ]]; then\n    break\n  fi\n  sleep 2\ndone\n\n# print container logs\ndocker logs gce-cloudsql-proxy\n\n# exit with error code if we couldn't connect\nif [[ $isready -ne 0 ]]; then\n  exit $isready \nfi\n"}]},"default_branch":"master","path":null},"repo_metadata":{"uuid":"297208940","full_name":"mattes/gce-cloudsql-proxy-action","owner":"mattes","description":"Github action which will start a Google Cloud SQL Proxy as Docker container.","archived":false,"fork":false,"pushed_at":"2021-06-22T22:52:48.000Z","size":9,"stargazers_count":31,"open_issues_count":6,"forks_count":38,"subscribers_count":6,"default_branch":"master","last_synced_at":"2023-07-13T08:40:02.007Z","etag":null,"topics":["cloudsql","cloudsql-proxy","docker","github-action","google","google-cloud","google-cloud-sql","google-cloud-sql-proxy"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-21T02:33:48.000Z","updated_at":"2023-07-06T06:45:48.000Z","dependencies_parsed_at":"2023-01-11T17:23:06.660Z","dependency_job_id":null,"html_url":"https://github.com/mattes/gce-cloudsql-proxy-action","commit_stats":null,"previous_names":[],"tags_count":3,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattes","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":145722554,"owners_count":6280670,"icon_url":"https://github.com/github.png","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"},"owner_record":{"login":"mattes","name":"Matt","uuid":"1240531","kind":"user","description":"","email":"","website":null,"location":"NYC","twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/1240531?u=61a3c89233711016c749fcdbebb5fad27dac9a60\u0026v=4","repositories_count":40,"last_synced_at":"2023-03-24T08:41:28.511Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/mattes","created_at":"2022-11-03T21:09:41.983Z","updated_at":"2023-03-24T08:41:28.586Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattes","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattes/repositories"},"tags":[{"name":"v1.0.1","sha":"145471ad36a0211ca4a7b90af14587bcc35b3c99","kind":"commit","published_at":"2021-04-12T18:30:34.000Z","download_url":"https://codeload.github.com/mattes/gce-cloudsql-proxy-action/tar.gz/v1.0.1","html_url":"https://github.com/mattes/gce-cloudsql-proxy-action/releases/tag/v1.0.1","dependencies_parsed_at":"2023-05-31T00:36:17.596Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags/v1.0.1/manifests"},{"name":"v1","sha":"145471ad36a0211ca4a7b90af14587bcc35b3c99","kind":"commit","published_at":"2021-04-12T18:30:34.000Z","download_url":"https://codeload.github.com/mattes/gce-cloudsql-proxy-action/tar.gz/v1","html_url":"https://github.com/mattes/gce-cloudsql-proxy-action/releases/tag/v1","dependencies_parsed_at":"2023-05-31T00:36:17.755Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags/v1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags/v1/manifests"},{"name":"v1.0.0","sha":"3a5d88a3d1c80ddd4aeabfbe99b2cdb04ad81b10","kind":"commit","published_at":"2020-09-22T07:45:41.000Z","download_url":"https://codeload.github.com/mattes/gce-cloudsql-proxy-action/tar.gz/v1.0.0","html_url":"https://github.com/mattes/gce-cloudsql-proxy-action/releases/tag/v1.0.0","dependencies_parsed_at":"2023-05-31T00:36:17.913Z","dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattes%2Fgce-cloudsql-proxy-action/tags/v1.0.0/manifests"}]},"repo_metadata_updated_at":"2023-07-14T10:09:19.692Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":9,"rankings":{"downloads":null,"dependent_repos_count":12.631912533671366,"dependent_packages_count":0.0,"stargazers_count":5.190936460148946,"forks_count":1.666930755823166,"docker_downloads_count":null,"average":4.87244493741087},"purl":"pkg:githubactions/mattes/gce-cloudsql-proxy-action","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/actions/mattes/gce-cloudsql-proxy-action","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/actions/mattes/gce-cloudsql-proxy-action","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/actions/mattes/gce-cloudsql-proxy-action/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/mattes%2Fgce-cloudsql-proxy-action/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/mattes%2Fgce-cloudsql-proxy-action/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/mattes%2Fgce-cloudsql-proxy-action/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/mattes%2Fgce-cloudsql-proxy-action/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/mattes%2Fgce-cloudsql-proxy-action/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/github%20actions/packages/mattes%2Fgce-cloudsql-proxy-action/codemeta","maintainers":[]}