GithubHelp home page GithubHelp logo

terraform-google-cloud-build's Introduction

Terraform Module for Google Cloud Build Triggers

This Terraform module creates Google Cloud Build triggers for a specified GitHub repository. It supports push, tag and pull request triggers.

Variables

  • location: The location of the Cloud Build triggers.
  • owner: The owner of the GitHub repository.
  • repository: The name of the GitHub repository.
  • triggers: List of trigger configurations. Each configuration is an object with the following attributes:
    • name: The name of the Cloud Build trigger.
    • tags: List of tags to apply to the trigger.
    • sa: The service account to use for the trigger.
    • ignored_files: List of file globs to ignore for the trigger.
    • included_files: List of file globs to include for the trigger.
    • event: The type of trigger (push, tag or pull_request).
    • regex: The pattern to match for triggering builds (branch on push, tag on tag, base branch on pull_request).
    • invert_regex: Whether to invert the regex pattern.
    • send_build_logs: Whether to send build logs to GitHub.

Example

module "cloud_build_triggers" {
  source = "git::https://github.com/layer-3/terraform-layer-3-cloud-build.git"

  location = "global"
  owner = "layer-3"
  repository = "terraform-layer-3-cloud-build"
  triggers = [
    {
      name = "master-push"
      tags = ["master", "push"]
      sa = "sa-name"
      ignored_files = [".gitignore"]
      event = "push"
      regex = "^master$"
      send_build_logs = true
    }
  ]
}

Author

This module is maintained by philanton.

License

This module is licensed under the MIT License.

terraform-google-cloud-build's People

Contributors

philanton avatar

Watchers

Camille avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.