mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-07 18:00:01 +00:00
Add hosts for detached steps (#4674)
This commit is contained in:
@@ -199,7 +199,7 @@ func (e *kube) SetupWorkflow(ctx context.Context, conf *types.Config, taskUUID s
|
|||||||
var extraHosts []types.HostAlias
|
var extraHosts []types.HostAlias
|
||||||
for _, stage := range conf.Stages {
|
for _, stage := range conf.Stages {
|
||||||
for _, step := range stage.Steps {
|
for _, step := range stage.Steps {
|
||||||
if step.Type == types.StepTypeService {
|
if step.Type == types.StepTypeService || step.Detached {
|
||||||
svc, err := startService(ctx, e, step)
|
svc, err := startService(ctx, e, step)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Reference in New Issue
Block a user