@lament summit
I guess what I don't understand is that the exported files from the container are working, but they don't show up in the mount. Let me paste an example so I can see what I am doing wrong.
This is the second action being run after a prior action was run that exported a build directory into the artifacts path on the host.
I setup some test code to echo the contents of the host artifact directory that is mounted into the container at /artifacts. The host artifact directory itself is just a temporary directory that is created before I start the pipeline.
container = container.WithMountedDirectory("/artifacts", client.Host().Directory(project.Artifacts))
ent, err := os.ReadDir(project.Artifacts)
if err != nil {
return nil, err
}
for _, e := range ent {
container = container.WithExec([]string{"echo", e.Name()})
}
container = container.WithExec([]string{"ls", "-R", "/artifacts"})
The output of this is:
#18 mkdir -p /tmp/artifacts
#18 DONE 0.5s
#19 echo build
#19 0.535 build
#19 DONE 0.6s
#20 echo test
#20 0.974 test
#20 DONE 1.0s
#21 ls -R /artifacts
#21 0.598 /artifacts:
2023-02-08 11:04:09 #21 0.598 test