Skip to content

Latest commit

 

History

History

cloud-build-badge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

cloud-build-badge

Add cloud build badges in 2 minutes.

  1. Create a cloud storage bucket (tutorial here).
  2. Create a folder in the bucket named build.
  3. Download failure and success badges (follow links and save).
  4. Upload both badges to the google storage bucket/folder created in the previous step (e.g. minikube-ci-example/build/success.svg).
  5. Create a placeholder for your badge (e.g. minikube-ci-example/build/working.svg (make permissions public).
  6. Deploy the cloud function as the badge name and set the function trigger to the cloud-builds pubsub topic.

gcloud functions deploy working --runtime nodejs10 --trigger-resource cloud-builds --trigger-event google.pubsub.topic.publish

  1. Add badge to README.md
# README.md
[![cloud build status](https://storage.googleapis.com/minikube-ci-example/build/working.svg)](https://pantheon.corp.google.com/cloud-build/dashboard?project=k8s-minikube)
  1. For more detail, please check cloud-build-badge