Allow configuration of default platform if no runs-on labels match

This commit is contained in:
Mike
2025-01-26 19:49:15 -08:00
parent 8dfb805c62
commit 0957d88d06
4 changed files with 14 additions and 3 deletions

View File

@@ -79,7 +79,7 @@ func (l Labels) PickPlatform(runsOn []string) string {
// So the runner receives a task with a label that the runner doesn't have,
// it happens when the user have edited the label of the runner in the web UI.
// TODO: it may be not correct, what if the runner is used as host mode only?
return "gitea/runner-images:ubuntu-latest"
return ""
}
func (l Labels) Names() []string {