diff --git a/pkg/runner/run_context.go b/pkg/runner/run_context.go index 550173c..4a7e11e 100644 --- a/pkg/runner/run_context.go +++ b/pkg/runner/run_context.go @@ -263,6 +263,9 @@ func (rc *RunContext) startJobContainer() common.Executor { logger.Infof("\U0001f680 Start image=%s", image) name := rc.jobContainerName() + // For gitea, to support --volumes-from in options. + // We need to set the container name to the environment variable. + rc.Env["JOB_CONTAINER_NAME"] = name envList := make([]string, 0)