Skip to content

Commit 19764bc

Browse files
authored
feat: support interpolation in <job>.container.options (#1958)
1 parent c84a3ef commit 19764bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/runner/run_context.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -518,14 +518,14 @@ func (rc *RunContext) platformImage(ctx context.Context) string {
518518
return rc.runsOnImage(ctx)
519519
}
520520

521-
func (rc *RunContext) options(_ context.Context) string {
521+
func (rc *RunContext) options(ctx context.Context) string {
522522
job := rc.Run.Job()
523523
c := job.Container()
524-
if c == nil {
525-
return rc.Config.ContainerOptions
524+
if c != nil {
525+
return rc.ExprEval.Interpolate(ctx, c.Options)
526526
}
527527

528-
return c.Options
528+
return rc.Config.ContainerOptions
529529
}
530530

531531
func (rc *RunContext) isEnabled(ctx context.Context) (bool, error) {

0 commit comments

Comments
 (0)