DanielSuhett / Cloudbuild

Make easy run a trigger from CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Cloud Build Trigger Runner

This is a Go application for initiating Cloud Build triggers on Google Cloud Platform.

Prerequisites

Before using this application, ensure you have the following in place:

  • Google Cloud Account
  • Google Cloud Project
  • Google Cloud Authentication

Configuration

Clone this repository to your local machine:

git clone https://github.com/DanielSuhett/deploy-to-cloudbuild.git

Install dependencies using the following command:

go mod tidy

Build the application:

go build -o cloud-build-runner

Run the configuration:

./cloud-build-runner config 

Input YOUR_PROJECT with the appropriate values for your project.

Run

Deploy

./cloud-build-runner deploy --trigger YOUR_TRIGGER --branch YOUR_BRANCH

ReplaceYOUR_TRIGGER, and YOUR_BRANCH with the appropriate values for your project.


Status

./cloud-build-runner status --trigger YOUR_TRIGGER

Replace YOUR_TRIGGER with the appropriate values for your project.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Make easy run a trigger from CLI


Languages

Language:Go 100.0%