mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-22 01:53:29 +00:00
Add docker section in .drone.yml with net option
This commit is contained in:
@@ -330,6 +330,10 @@ func (b *Builder) run() error {
|
||||
Privileged: (b.Privileged && len(b.Repo.PR) == 0),
|
||||
}
|
||||
|
||||
if host.Privileged {
|
||||
host.NetworkMode = script.DockerNetworkMode(b.Build.Docker)
|
||||
}
|
||||
|
||||
// debugging
|
||||
log.Noticef("starting build %s", b.Build.Name)
|
||||
|
||||
|
Reference in New Issue
Block a user