public static async build()

in functions/src/cron.ts [41:60]


  public static async build() {
    const auth = await google.auth.getClient({
      scopes: ["https://www.googleapis.com/auth/cloud-platform"]
    });

    const client = google.cloudbuild({
      version: "v1",
      auth: auth
    });

    const project = await google.auth.getProjectId();

    const params = {
      projectId: project,
      requestBody: buildConfig
    };

    const res = await client.projects.builds.create(params);
    console.log(res);
  }