1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-29 21:48:14 +02:00

Option to change temp dir for local backend (#2702)

---
*Sponsored by Kithara Software GmbH*
This commit is contained in:
6543
2023-11-02 15:45:18 +01:00
committed by GitHub
parent da6f39258d
commit 7bc40f20cb
5 changed files with 35 additions and 6 deletions

View File

@@ -15,7 +15,16 @@
package local
import (
"os"
"github.com/urfave/cli/v2"
)
var Flags = []cli.Flag{}
var Flags = []cli.Flag{
&cli.StringFlag{
Name: "backend-local-temp-dir",
EnvVars: []string{"WOODPECKER_BACKEND_LOCAL_TEMP_DIR"},
Usage: "set a different temp dir to clone workflows into",
Value: os.TempDir(),
},
}