Add docker section in .drone.yml with net option

This commit is contained in:
Vsevolod Strukchinsky
2014-10-15 15:24:20 +06:00
parent cb7cf41f11
commit 54a6e56611
5 changed files with 73 additions and 0 deletions

View File

@@ -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)