From 8609522aa4f3bd77d4ad41c75a6ed258cba18715 Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Wed, 19 Apr 2023 21:53:57 +0800 Subject: [PATCH] Support services options (#45) Reviewed-on: https://gitea.com/gitea/act/pulls/45 Reviewed-by: Lunny Xiao Co-authored-by: Zettat123 Co-committed-by: Zettat123 --- pkg/runner/run_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index b8c3265..ffd98d0 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -271,6 +271,7 @@ func (rc *RunContext) startJobContainer() common.Executor { UsernsMode: rc.Config.UsernsMode, Platform: rc.Config.ContainerArchitecture, AutoRemove: rc.Config.AutoRemove, + Options: spec.Options, NetworkAliases: []string{name}, }) rc.ServiceContainers = append(rc.ServiceContainers, c)