mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-09-05 20:07:25 +00:00
cli exec: have uniq prefix for each workflow (#6716)
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
This commit is contained in:
+1
-2
@@ -169,14 +169,13 @@ func runExec(ctx context.Context, c *cli.Command, yamls []*builder.YamlFile, rep
|
||||
|
||||
privilegedPlugins := c.StringSlice("plugins-privileged")
|
||||
|
||||
// emulate server prefix for volume/network naming
|
||||
// prefix for the local-execution workspace volume name
|
||||
prefix := "wp_" + ulid.Make().String()
|
||||
|
||||
// build compiler options — mirrors server behavior
|
||||
compilerOpts := []compiler.Option{
|
||||
compiler.WithEscalated(privilegedPlugins...),
|
||||
compiler.WithNetworks(c.StringSlice("network")...),
|
||||
compiler.WithPrefix(prefix),
|
||||
compiler.WithProxy(compiler.ProxyOptions{
|
||||
NoProxy: c.String("backend-no-proxy"),
|
||||
HTTPProxy: c.String("backend-http-proxy"),
|
||||
|
||||
Reference in New Issue
Block a user