Skip to content

Commit b4edc95

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 f121321 commit b4edc95

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
@@ -649,7 +649,7 @@ func (rc *RunContext) options(ctx context.Context) string {
649649
job := rc.Run.Job()
650650
c := job.Container()
651651
if c != nil {
652-
return rc.ExprEval.Interpolate(ctx, c.Options)
652+
return rc.Config.ContainerOptions + " " + rc.ExprEval.Interpolate(ctx, c.Options)
653653
}
654654

655655
return rc.Config.ContainerOptions

0 commit comments

Comments
 (0)