{"id":50653426,"url":"https://github.com/operationalfallacy/gcp-cloudbuild-demo","last_synced_at":"2026-06-07T22:03:57.010Z","repository":{"id":191933224,"uuid":"684228786","full_name":"OperationalFallacy/gcp-cloudbuild-demo","owner":"OperationalFallacy","description":"This is a simple GCP codebuild demo","archived":false,"fork":false,"pushed_at":"2025-01-09T22:16:27.000Z","size":2590,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T23:22:58.214Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/OperationalFallacy.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":"2023-08-28T17:59:49.000Z","updated_at":"2025-01-09T22:16:30.000Z","dependencies_parsed_at":"2025-01-09T23:21:39.071Z","dependency_job_id":"5a52c04e-9971-4770-bf98-b23aabf446d6","html_url":"https://github.com/OperationalFallacy/gcp-cloudbuild-demo","commit_stats":null,"previous_names":["operationalfallacy/gcp-codebuild-demo","operationalfallacy/gcp-cloudbuild-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/OperationalFallacy/gcp-cloudbuild-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationalFallacy%2Fgcp-cloudbuild-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationalFallacy%2Fgcp-cloudbuild-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationalFallacy%2Fgcp-cloudbuild-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationalFallacy%2Fgcp-cloudbuild-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OperationalFallacy","download_url":"https://codeload.github.com/OperationalFallacy/gcp-cloudbuild-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OperationalFallacy%2Fgcp-cloudbuild-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34039503,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-07T02:00:07.652Z","response_time":124,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-06-07T22:03:55.414Z","updated_at":"2026-06-07T22:03:57.001Z","avatar_url":"https://github.com/OperationalFallacy.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GCP Cloud Build with Config Connector\n\nWelcome to our demo project! Here, we showcase how to craft a build configuration for Cloud Build using the Infrastructure-as-Code (IaC) approach. We leveraged the Config Connector to create and manage Cloud Build, bringing an element of ease and automation into the process.\n\nFor utmost flexibility in both building and deploying software, we have delineated the configurations for infrastructure (`cloudbuild-github.yaml`) and the build (`src/cloudbuild.yaml`). Cloud Build will automatically utilize this build configuration whenever users initiate builds.\n\n## Prerequisites\n\nTo get started, ensure you have the following tools installed:\n\n- gcloud CLI\n- kubectl CLI\n\n## Resources import\n\n`yarn cdk8s import src/config-connector.json -- output src -l typescript --check-upgrade.false`\n\n## Create Configuration\n\nBegin by setting up a connection with your GitHub repository so that the Cloud Build trigger can reference it. Note that this is a manual step, as users may need to authenticate access to their repository through the standard OAuth flow.\n\nTo configure gcloud:\n\n`gcloud config set project project-name`\n\nNext, apply the following command to initiate Cloud Build resources (the trigger):\n\n`kubectl apply -f cloudbuild-github.yaml`\n\nNow, simply push your commits, and Cloud Build will execute them promptly.\n\n## Notable Features\n\nThis configuration stands out due to its completely serverless nature, managed entirely through code.\n\nAdditionally, deployments are a breeze, not requiring any credentials as all permissions can be designated to a custom service account we set up for Cloud Build.\n\nMoreover, Cloud Build offers seamless integration with GitHub, providing live updates on build logs, build status, and build completion directly on the commits (screenshots below).\n\n![Build Live status](media/build_notifications.png)\n\n![Build Details](media/build_details.png)\n\n## TODO\n\nMoving forward, we aim to configure pull request triggers and explore the variety of status updates Cloud Build can post.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperationalfallacy%2Fgcp-cloudbuild-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperationalfallacy%2Fgcp-cloudbuild-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperationalfallacy%2Fgcp-cloudbuild-demo/lists"}