mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-06 17:40:58 +00:00
initial support for expressons
Signed-off-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
7183c74cd0
commit
b8589c4e9b
10 changed files with 286 additions and 108 deletions
|
@ -62,6 +62,14 @@ type Job struct {
|
|||
TimeoutMinutes int64 `yaml:"timeout-minutes"`
|
||||
Container *ContainerSpec `yaml:"container"`
|
||||
Services map[string]*ContainerSpec `yaml:"services"`
|
||||
Strategy *Strategy `yaml:"strategy"`
|
||||
}
|
||||
|
||||
// Strategy for the job
|
||||
type Strategy struct {
|
||||
FailFast bool `yaml:"fail-fast"`
|
||||
MaxParallel int `yaml:"max-parallel"`
|
||||
Matrix map[string][]interface{} `yaml:"matrix"`
|
||||
}
|
||||
|
||||
// Needs list for Job
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue