Parse the pipeline templates.

This commit is contained in:
Tom Alexander
2024-09-28 19:19:38 -04:00
parent 6d3b9e9db8
commit d5902e3e7f
4 changed files with 39 additions and 7 deletions

View File

@@ -59,12 +59,13 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
.get_tree(
"talexander",
"webhook_bridge",
"c32a8650f509b5e4bbf6df0c210a3a01ad405eb5",
"6d3b9e9db82d7857baa114d89efcb1bf470f448d",
)
.await?;
let in_repo_config = discover_webhook_bridge_config(&gitea, &repo_tree).await?;
discover_matching_push_triggers(&gitea, &repo_tree, "refs/heads/main", &in_repo_config).await?;
let pipelines =
discover_matching_push_triggers(&gitea, &repo_tree, "refs/heads/main", &in_repo_config)
.await?;
// let jobs: Api<PipelineRun> = Api::namespaced(kubernetes_client, "lighthouse");
// let jobs: Api<PipelineRun> = Api::default_namespaced(kubernetes_client);