{"id":21623049,"url":"https://github.com/explooosion/react-gcp-deploy-example","last_synced_at":"2026-04-05T22:03:45.121Z","repository":{"id":66234125,"uuid":"302319478","full_name":"explooosion/react-gcp-deploy-example","owner":"explooosion","description":"Build and deploy react app to GCP Cloud Run with Github Actions","archived":false,"fork":false,"pushed_at":"2020-10-10T13:18:49.000Z","size":213,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T22:11:20.631Z","etag":null,"topics":["cloud-run","deploy","gcp","react"],"latest_commit_sha":null,"homepage":"https://create-react-app-2w7qqxwz2q-uc.a.run.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/explooosion.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-08T11:33:03.000Z","updated_at":"2020-10-14T08:57:22.000Z","dependencies_parsed_at":"2023-02-24T01:01:16.602Z","dependency_job_id":null,"html_url":"https://github.com/explooosion/react-gcp-deploy-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2Freact-gcp-deploy-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2Freact-gcp-deploy-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2Freact-gcp-deploy-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/explooosion%2Freact-gcp-deploy-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/explooosion","download_url":"https://codeload.github.com/explooosion/react-gcp-deploy-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244287918,"owners_count":20428896,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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"}},"keywords":["cloud-run","deploy","gcp","react"],"created_at":"2024-11-25T00:11:27.358Z","updated_at":"2025-12-31T00:14:17.557Z","avatar_url":"https://github.com/explooosion.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React GCP Deploy Example\n\nBuild your app to docker image, publish and deploy on GCP [Cloud Run](https://console.cloud.google.com/run) with github actions.\n\nBlog: [GCP - 使用 Github Actions 部署 React 到 Cloud Run](https://dotblogs.com.tw/explooosion/2020/10/09/143330)\n\n# Configuration\n\n1. Create GCP [project](https://console.cloud.google.com/projectcreate)\n\n2. Creating [service account keys](https://cloud.google.com/iam/docs/creating-managing-service-account-keys)\n\n3. Download json key look like this:\n\n```json\n{\n  \"type\": \"service_account\",\n  \"project_id\": \"project-id\",\n  \"private_key_id\": \"key-id\",\n  \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nprivate-key\\n-----END PRIVATE KEY-----\\n\",\n  \"client_email\": \"service-account-email\",\n  \"client_id\": \"client-id\",\n  \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n  \"token_uri\": \"https://accounts.google.com/o/oauth2/token\",\n  \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n  \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/service-account-email\"\n}\n```\n\n4. Create Github Secrets\n\n    - GCP_SA_EMAIL\n    - GCP_SA_KEY (paste json file)\n    - GCP_PROJECT_ID\n\n5. Add `main.yml` to your project\n\n6. Add `Dockerfile` to your project\n\n7. Push your project to Github repo\n\n6. Run Github Actions\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplooosion%2Freact-gcp-deploy-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplooosion%2Freact-gcp-deploy-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplooosion%2Freact-gcp-deploy-example/lists"}