From dc8ecfd1c81204f677ca950589e28c29316f38cc Mon Sep 17 00:00:00 2001 From: Chris Rudd Date: Fri, 8 Aug 2025 11:56:07 -0500 Subject: [PATCH] expose job.container.network --- pkg/runner/run_context.go | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index f6e4dec2755..3b58288e97d 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -861,8 +861,17 @@ func (rc *RunContext) getJobContext() *model.JobContext { } } } + jobNetwork, _ := rc.networkName() + jobContainer := struct { + ID string `json:"id"` + Network string `json:"network"` + }{ + ID: "", + Network: jobNetwork, + } return &model.JobContext{ - Status: jobStatus, + Status: jobStatus, + Container: jobContainer, } }