list stuff
This commit is contained in:
parent
3123986512
commit
5b43195fef
@ -37,6 +37,8 @@ func Build(builder *internal.Builder, imageTag string) error {
|
|||||||
for _, d := range dir {
|
for _, d := range dir {
|
||||||
log.Printf("content: %s\n", d.Name())
|
log.Printf("content: %s\n", d.Name())
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("listing files in /src/docker")
|
log.Println("listing files in /src/docker")
|
||||||
@ -47,6 +49,14 @@ func Build(builder *internal.Builder, imageTag string) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
log.Println("listing files in /src/")
|
||||||
|
dir, err = os.ReadDir("/src/")
|
||||||
|
if err == nil {
|
||||||
|
for _, d := range dir {
|
||||||
|
log.Printf("content: %s\n", d.Name())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
golang := client.Container().From("golang:latest")
|
golang := client.Container().From("golang:latest")
|
||||||
golang = golang.WithMountedDirectory("/src/build", src).WithWorkdir("/src")
|
golang = golang.WithMountedDirectory("/src/build", src).WithWorkdir("/src")
|
||||||
_, err = golang.Exec(dagger.ContainerExecOpts{
|
_, err = golang.Exec(dagger.ContainerExecOpts{
|
||||||
|
Loading…
Reference in New Issue
Block a user