mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 02:19:25 +00:00
add --privileged to drone build command
Signed-off-by: Alex Suraci <asuraci@pivotallabs.com>
This commit is contained in:
@@ -31,6 +31,9 @@ var (
|
|||||||
// this will default to 500 minutes (6 hours)
|
// this will default to 500 minutes (6 hours)
|
||||||
timeout = flag.Duration("timeout", 300*time.Minute, "")
|
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
|
// runs Drone with verbose output if True
|
||||||
verbose = flag.Bool("v", false, "")
|
verbose = flag.Bool("v", false, "")
|
||||||
|
|
||||||
@@ -187,6 +190,7 @@ func run(path string) {
|
|||||||
builder.Key = key
|
builder.Key = key
|
||||||
builder.Stdout = os.Stdout
|
builder.Stdout = os.Stdout
|
||||||
builder.Timeout = *timeout
|
builder.Timeout = *timeout
|
||||||
|
builder.Privileged = *privileged
|
||||||
|
|
||||||
if *parallel == true {
|
if *parallel == true {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
@@ -285,6 +289,7 @@ The commands are:
|
|||||||
-h display this help and exit
|
-h display this help and exit
|
||||||
--parallel runs drone build tasks in parallel
|
--parallel runs drone build tasks in parallel
|
||||||
--timeout=300ms timeout build after 300 milliseconds
|
--timeout=300ms timeout build after 300 milliseconds
|
||||||
|
--privileged runs drone build in a privileged container
|
||||||
|
|
||||||
Examples:
|
Examples:
|
||||||
drone build builds the source in the pwd
|
drone build builds the source in the pwd
|
||||||
|
Reference in New Issue
Block a user