cloud-build-basics
यह क्या करती है
यह स्किल Google Cloud Build से परिचय कराती है, Google की वह सेवा जो builds अपने-आप चलाती है। यह उन लोगों के लिए है जो इसे पहली बार सेट कर रहे हैं।
कब इस्तेमाल करें
- ✓जब आप पहली बार Google Cloud Build सेट करना चाहें।
- ✓जब आपको build trigger बनाना और उसे हाथ से चलाना हो।
- ✓जब आप Google Cloud पर किसी प्रोजेक्ट का build इतिहास देखना चाहें।
Skill का लिंक
https://github.com/google/skills/blob/main/skills/cloud/cloud-build-basics/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“मुझे दिखाइए कि Google Cloud पर Cloud Build कैसे सेट करें और अपना पहला build हाथ से कैसे चलाएँ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह क्रम से ज़रूरी बातें बताती है: API चालू करना, Build History पेज देखना, और एक बुनियादी trigger बनाना।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Cloud Build Basics
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you
MUST read Usage Attribution. For commands executed
directly in the terminal (never in generated scripts, Terraform, or user code),
prefix gcloud with
CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:cloud-build-basics)"
and append agent-skills/1.0 (skill:cloud-build-basics) to User-Agent headers.
Prerequisites
Before starting, ensure the following prerequisites are met:
- Google Cloud SDK: Ensure the Google Cloud SDK is installed and configured.
- Authentication: Authenticate the gcloud CLI:
gcloud auth login gcloud auth application-default login - Project ID: Know the target Google Cloud Project ID. Set the context:
gcloud config set project <PROJECT_ID> - Enable Cloud Build API: The Cloud Build API must be enabled for the project.
gcloud services enable cloudbuild.googleapis.com - Permissions: Ensure the user or service account has the necessary permissions, such as
roles/cloudbuild.builds.editorandroles/serviceusage.serviceUsageAdmin(to enable the API).
Core Concepts
Cloud Build (GCB) is a serverless platform that executes your builds on Google Cloud. It translates your source code into deployable artifacts, such as Docker containers or Java archives.
| Concept | Description |
|---|---|
cloudbuild.yaml |
The required configuration file that defines the build steps. It is written in YAML or JSON. |
| Build Steps | A sequence of actions (steps) GCB performs. Each step runs a command inside a specific Docker container (the builder). Common builders include gcr.io/cloud-builders/gcloud, gcr.io/cloud-builders/docker, and custom containers. |
| Artifacts | The output of the build, typically a container image pushed to Google Container Registry (GCR) or Artifact Registry (AR), or other deployable files. |
| Triggers | Automation rules that invoke a build in response to an event, such as a push to a Git repository, a Pub/Sub message, or a manual request. |
Navigation: Viewing Build History
The Cloud Build Build History page is the central place to monitor the status of past and ongoing builds.
- Open the Cloud Console: Navigate to the Google Cloud Console.
- Go to Cloud Build: Use the search bar or the navigation menu to find Cloud Build.
- Select Build History: In the left navigation pane, select History (or use the direct URL:
https://console.cloud.google.com/cloud-build/builds). - Review Builds:
- Status: Check the status column (
SUCCESS,FAILURE,WORKING,QUEUED). - Region: Use the region filter at the top to view builds that ran in a specific region (important for regional worker pools).
- Logs: Click on a specific Build ID to view the detailed logs, execution steps, and build summary. This is crucial for debugging failed builds.
- Status: Check the status column (
[!NOTE] If this is your first time visiting the page, you might see the "zero-state" experience, which offers options to run a sample build or create your first trigger (as noted in the
cb-list-build-zero-stateskill). Note that region settings for triggers and builds are immutable after creation and must be chosen deliberately.
Creating a Basic Automated Trigger
This process defines an automation rule to run a build whenever code is pushed to a specified Git branch.
Step 1: Start Trigger Creation
- Navigate to the Cloud Build Triggers page (
https://console.cloud.google.com/cloud-build/triggers). - Click Create trigger.
Step 2: Configure Trigger Settings
- Name: Provide a unique, descriptive name (e.g.,
github-main-branch-build). - Region: Select the region where the trigger configuration will be stored (e.g.,
globalor a specific regional endpoint). Note: Trigger and build region settings are immutable after creation and must be chosen deliberately. - Event: Select the event type. For automated CI/CD, select Push to a branch.
- Source: Select the repository source:
- Repository: Connect your source repository (GitHub, Bitbucket, Cloud Source Repositories, etc.). If needed, authorize the connection.
- Repository Name: Select
अक्सर पूछे जाने वाले सवाल
क्या यह private pools कवर करती है?
नहीं। यह सिर्फ़ बुनियादी बातें कवर करती है, private pools या जटिल pipelines नहीं।
कौन सी भूमिकाएँ चाहिए?
Cloud Build builds editor भूमिका, और API चालू करने के लिए service usage admin।
क्या पहले API चालू करनी होगी?
हाँ। builds चलने से पहले प्रोजेक्ट में Cloud Build API चालू होना चाहिए।
जानकारी
लेखक का मूल विवरण
Teaches the fundamentals of Cloud Build on Google Cloud. Covers core concepts, API enablement, console navigation to the Build History page, and the end-to-end workflow for creating and manually running a basic build trigger. Do not use for managing private pools or complex pipeline architectures.
repo: google/skills
लोकप्रियता
- GitHub स्टार
- 22k
- रैंकिंग में स्थान
- #10234
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
finding-google-skills
22kआपके एजेंट को किसी सेटअप काम के लिए सही Google गाइड खोजने में मदद करती है, जैसे hosting, databases, storage, sign-in या AI model serving।
gcloud
22kयह आपके एजेंट को Google Cloud gcloud कमांड लिखने और जाँचने में मदद करती है, कुछ भी चलाने से पहले सटीक सिंटैक्स देखकर, ताकि फ़्लैग का अंदाज़ा न लगे।
google-cloud-recipe-auth
22kआपके एजेंट को Google Cloud की पहचान और पहुँच समझाती है, जिसमें यह शामिल है कि लोग और सेवाएँ कैसे साइन इन करते हैं और उन्हें कौन सी अनुमतियाँ मिलती हैं।
google-cloud-recipe-onboarding
22kएक नए डेवलपर को Google Cloud पर पहले कदमों में मदद करती है, जिसमें प्रोजेक्ट चुनना, बिलिंग जोड़ना और पहला संसाधन डिप्लॉय करना शामिल है।
मिलती-जुलती skills
openclaw-update
394kयह आपके एजेंट को चल रहे OpenClaw Gateway को अपडेट करने में मदद करती है, इंस्टॉल के तरीके के अनुसार सही विधि चुनकर और सेशन बनाए रखकर।
diagnose-gateway
394kयह आपके एजेंट को सेटिंग्स, चैनल और पोर्ट जांचकर पता लगाने देती है कि OpenClaw Gateway क्यों फ़ेल हो रहा है, बिना कुछ बदले।
crabbox-apps
394kयह आपके एजेंट को किसी अस्थायी क्लाउड मशीन पर ऐप खोलने और चलाने देती है, फिर उसका व्यू आपके चैट के साइड पैनल में दिखाती है।