mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-08 08:10:30 +00:00
add support to override platform
Signed-off-by: Casey Lee <[email protected]>
This commit is contained in:
8 files changed
+59
-37
No files matched your search
@@ -102,7 +102,7 @@ func (rc *RunContext) Executor() common.Executor {
|
||||
}
|
||||
|
||||
platformName := rc.ExprEval.Interpolate(rc.Run.Job().RunsOn)
|
||||
if img := platformImage(platformName); img == "" {
|
||||
if img, ok := rc.Config.Platforms[strings.ToLower(platformName)]; !ok || img == "" {
|
||||
log.Infof(" \U0001F6A7 Skipping unsupported platform '%s'", platformName)
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user