mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-19 22:33:45 +00:00
Remove the network when there is no service (#103)
Reviewed-on: https://gitea.com/gitea/act/pulls/103 Reviewed-by: Jason Song <[email protected]> Co-authored-by: Zettat123 <[email protected]> Co-committed-by: Zettat123 <[email protected]>
This commit is contained in:
1 parent
0054a45d1b
commit
655f578563
1 file changed
+1
-1
@@ -382,6 +382,7 @@ func (rc *RunContext) startJobContainer() common.Executor {
|
||||
if err := rc.stopServiceContainers()(ctx); err != nil {
|
||||
logger.Errorf("Error while cleaning services: %v", err)
|
||||
}
|
||||
}
|
||||
if createAndDeleteNetwork {
|
||||
// clean network if it has been created by act
|
||||
// if using service containers
|
||||
@@ -392,7 +393,6 @@ func (rc *RunContext) startJobContainer() common.Executor {
|
||||
logger.Errorf("Error while cleaning network: %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
})(ctx)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user