cloud-build-basics
Was er macht
Dieser Skill stellt Google Cloud Build vor, Googles Dienst, um Builds automatisch auszuführen. Gedacht ist das für Menschen, die ihn zum ersten Mal einrichten.
Wann du ihn nutzt
- ✓Wenn du Google Cloud Build zum ersten Mal einrichten willst.
- ✓Wenn du einen Build-Trigger anlegen und manuell ausführen musst.
- ✓Wenn du den Build-Verlauf eines Projekts auf Google Cloud sehen willst.
Link zum Skill
https://github.com/google/skills/blob/main/skills/cloud/cloud-build-basics/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Zeig mir, wie ich Cloud Build auf Google Cloud einrichte und meinen ersten Build manuell starte.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Er geht die wichtigsten Schritte in der Reihenfolge durch: API aktivieren, die Build-Verlaufsseite prüfen und einen einfachen Trigger anlegen.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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
Häufige Fragen
Deckt er private Pools ab?
Nein. Er behandelt nur die Grundlagen, nicht private Pools oder komplexe Pipelines.
Welche Rollen werden benötigt?
Du brauchst die Rolle Cloud Build Builds Editor und zum Aktivieren der API die Rolle Service Usage Admin.
Muss ich die API vorher aktivieren?
Ja. Die Cloud Build API muss für das Projekt aktiviert sein, bevor Builds laufen können.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 22k
- Platz im Ranking
- #10234
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
finding-google-skills
22kHilft deinem Agenten, die richtigen Google-Anleitungen für eine Einrichtungsaufgabe zu finden, etwa für Hosting, Datenbanken, Speicher, Anmeldung oder das Bereitstellen von KI-Modellen.
gcloud
22kHilft deinem Agenten, gcloud-Befehle für Google Cloud zu schreiben und zu prüfen, und schlägt die genaue Syntax nach, bevor etwas ausgeführt wird, damit keine Flags geraten werden.
google-cloud-recipe-auth
22kFührt deinen Agenten durch Identität und Zugriff in Google Cloud, einschließlich Anmeldung von Personen und Diensten und der Berechtigungen, die sie erhalten.
google-cloud-recipe-onboarding
22kFührt einen neuen Entwickler durch die ersten Schritte in Google Cloud, darunter Projektauswahl, Verknüpfung der Abrechnung und die Bereitstellung einer ersten Ressource.
Ähnliche Skills
openclaw-update
394kHilft deinem Agenten, ein bestehendes OpenClaw-Gateway zu aktualisieren, mit der Methode, die zu deiner Installation passt, während deine Sitzung weiterläuft.
diagnose-gateway
394kHilft deinem Agenten herauszufinden, warum dein OpenClaw-Gateway fehlschlägt, indem er Einstellungen, Kanäle und Ports prüft, ohne etwas zu ändern.
crabbox-apps
394kHilft deinem Agenten, eine App auf einer temporären Cloud-Maschine zu öffnen und auszuführen und ihre Ansicht in deinem Chat-Seitenpanel zu zeigen.