CLASSFUNC BLOG

We Share Our Knowledge
Site Search

Tạo trigger cloud build

Thiet ✍︎︎ 21-09-2020
  1. deploy Firebase hosting, xem thêm tại đây
  2. Add trigger gcp console -> Cloud Build -> Trigger -> tìm đến repositiries cần tạo -> add

  3. Cấu hình trigger(name, event, banch, source, build configuration…)

  4. Tạo, cài đặt file cloudbuild.yaml (tên file trùng với trên Build configuration, hosting mới tạo ở bước 1)
  5. Add variable, lấy firebase token bằng lệnh: firebase login:ci
  6. Submit Create