Skip to content

Trigger

Chetabahana edited this page Jun 6, 2019 · 18 revisions

Table of Contents

Arsitektur

GCloud

Rest API

Trigger API

HTTP Trigger

request.json:
{
  "trigger_template": {
    "repoName": "$YOUR_REPO_NAME",
    "branchName": "$SOME_BRANCH"
  },
  "filename": "$PATH_TO_CONFIG_FILE"
}

Aktifkan via request:

curl -XPOST -T request.json -H"Authorization: Bearer $(gcloud config config-helper --format='value(credential.access_token)')" https://cloudbuild.googleapis.com/v1/projects/$YOUR_PROJECT_ID/triggers

Cloud Pub/Sub

Cloud Functions

gcloud functions call NAME --data 'THING'

Referensi

Project Tutorial

You are on the wiki of our repo

Chetabahana Project

Clone this wiki locally