1
0

feat: multiple commands to run in container

This commit is contained in:
2023-05-23 20:46:09 +00:00
parent e302c447f5
commit c6e06d8e3e
6 changed files with 17 additions and 10 deletions

4
pew.go
View File

@ -296,7 +296,9 @@ func build(flog zerolog.Logger, tmp string, ka config.Artifact,
log.Fatal().Err(err).Msg("container creation failure")
}
output, err = c.Run(outdir, buildCommand+" && chmod -R 777 /work")
output, err = c.Run(outdir, []string{
buildCommand + " && chmod -R 777 /work",
})
} else {
cmd := exec.Command("bash", "-c", "cd "+outdir+" && "+
buildCommand)