mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-22 16:36:30 +00:00
add --privileged to drone build command
Signed-off-by: Alex Suraci <asuraci@pivotallabs.com>
This commit is contained in:
parent
e0c9617dc7
commit
fc3715e50b
1 changed files with 5 additions and 0 deletions
|
@ -31,6 +31,9 @@ var (
|
|||
// this will default to 500 minutes (6 hours)
|
||||
timeout = flag.Duration("timeout", 300*time.Minute, "")
|
||||
|
||||
// build will run in a privileged container
|
||||
privileged = flag.Bool("privileged", false, "")
|
||||
|
||||
// runs Drone with verbose output if True
|
||||
verbose = flag.Bool("v", false, "")
|
||||
|
||||
|
@ -187,6 +190,7 @@ func run(path string) {
|
|||
builder.Key = key
|
||||
builder.Stdout = os.Stdout
|
||||
builder.Timeout = *timeout
|
||||
builder.Privileged = *privileged
|
||||
|
||||
if *parallel == true {
|
||||
var buf bytes.Buffer
|
||||
|
@ -285,6 +289,7 @@ The commands are:
|
|||
-h display this help and exit
|
||||
--parallel runs drone build tasks in parallel
|
||||
--timeout=300ms timeout build after 300 milliseconds
|
||||
--privileged runs drone build in a privileged container
|
||||
|
||||
Examples:
|
||||
drone build builds the source in the pwd
|
||||
|
|
Loading…
Reference in a new issue