Skip to content

Commit

Permalink
merged main
Browse files Browse the repository at this point in the history
  • Loading branch information
jmagoon committed Oct 31, 2024
2 parents df025c3 + cf3ecba commit 68372cc
Show file tree
Hide file tree
Showing 15 changed files with 125 additions and 14,676 deletions.
13 changes: 13 additions & 0 deletions executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,19 @@ func localExecute(pipeline *zjson.Pipeline, pipelineMerkleTree *zjson.PipelineMe
}
}

if cfg.Local.Driver == "k3d" {
imageImport := []string{"image", "import"}
for _, image := range blocks {
imageImport = append(imageImport, image)
}
imageImport = append(imageImport, "-c")
imageImport = append(imageImport, cfg.Local.K3DCluster)
pullImage := cmd.NewCmd("k3d", imageImport...)
<-pullImage.Start()
log.Println(pullImage.Status().Stdout)
log.Println(pullImage.Status().Stderr)
}

if err := eg.Wait(); err != nil {
pipelineLogger.Printf("error during pipeline build execution; err=%v", err)
log.Printf("error during pipeline build execution; err=%v", err)
Expand Down
Loading

0 comments on commit 68372cc

Please sign in to comment.