Skip to content

Commit 7e20ddf

Browse files
nicoracwolfogre
authored andcommitted
Patched options() to let container options propagate to job containers (#80)
This PR let "general" container config to be propagated to each job container. See: - https://gitea.com/gitea/act_runner/issues/265#issuecomment-744382 - https://gitea.com/gitea/act_runner/issues/79 - https://gitea.com/gitea/act_runner/issues/378 Reviewed-on: https://gitea.com/gitea/act/pulls/80 Reviewed-by: Jason Song <[email protected]> Co-authored-by: Claudio Nicora <[email protected]> Co-committed-by: Claudio Nicora <[email protected]>
1 parent 82a3640 commit 7e20ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/runner/run_context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ func (rc *RunContext) options(ctx context.Context) string {
717717
job := rc.Run.Job()
718718
c := job.Container()
719719
if c != nil {
720-
return rc.ExprEval.Interpolate(ctx, c.Options)
720+
return rc.Config.ContainerOptions + " " + rc.ExprEval.Interpolate(ctx, c.Options)
721721
}
722722

723723
return rc.Config.ContainerOptions

0 commit comments

Comments
 (0)