feat: multiple commands to run in container
This commit is contained in:
4
pew.go
4
pew.go
@ -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)
|
||||
|
Reference in New Issue
Block a user