cloudbuild-ops

Automate Google Cloud Build CI/CD pipeline configuration with Terraform integration.

Updated Feb 19, 2026
One-click install
npx skills add https://github.com/kunallimaye/lib-agents --skill cloudbuild-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudbuild-ops
Source: https://github.com/kunallimaye/lib-agents/tree/main/skills/cloudbuild-ops
Command: npx skills add https://github.com/kunallimaye/lib-agents --skill cloudbuild-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the setup and management of CI/CD pipelines using Google Cloud Build, particularly for integrating Terraform workflows, reducing manual configuration and potential errors.

Core Features & Use Cases

  • CI/CD Pipeline Authoring: Guides the creation of cloudbuild.yaml for application builds and deployments.
  • Terraform Integration: Implements the "Terraform-via-Cloud-Build" pattern for safe infrastructure management (plan on PR, apply on merge).
  • Directory Structure: Defines conventions for organizing CI/CD and Terraform configurations.
  • Use Case: Setting up a new project that requires automated builds, container pushes to Artifact Registry, and infrastructure provisioning with Terraform, ensuring a secure and repeatable deployment process.

Quick Start

Use the cloudbuild-ops skill to generate a standard cloudbuild.yaml file for a new project.

Frequently Asked Questions about cloudbuild-ops

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up Google Cloud Build for Terraform deployments?

You can automate Terraform deployments in Google Cloud Build by defining a cloudbuild.yaml file that runs a plan on pull requests and applies changes upon merge. This approach manages Terraform state in GCS and enforces secure automated infrastructure workflows.

What is the best way to structure a cloudbuild.yaml file for CI/CD pipelines?

The best way to structure a cloudbuild.yaml file for CI/CD pipelines is to define build steps for container pushes to Artifact Registry and separate stages for infrastructure deployment. This ensures a secure, repeatable deployment process.

Can I run Terraform plan on pull requests and apply on merge with Cloud Build?

Yes, you can run Terraform plan on pull requests and apply on merge by configuring specific Cloud Build trigger types. This pattern ensures infrastructure changes are validated before automated deployment to your environment.

How does Terraform state management in GCS work with Cloud Build?

Terraform state management in GCS works with Cloud Build by configuring your Terraform backend to point to a Google Cloud Storage bucket. This centralizes state locking and storage for automated infrastructure deployments.

Do I need a specific directory structure for Terraform and Cloud Build configurations?

Yes, you need a specific directory structure for Terraform and Cloud Build configurations to maintain organization and security. Defining directory conventions ensures your infrastructure as code and CI/CD pipelines remain repeatable.