mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
fix #108 - ensure container names are unique for matrix runs
This commit is contained in:
parent
ed7e10bf8f
commit
f5fac4b8b9
2 changed files with 11 additions and 1 deletions
|
@ -63,7 +63,7 @@ func (runner *runnerImpl) NewPlanExecutor(plan *model.Plan) common.Executor {
|
|||
|
||||
for i, matrix := range matrixes {
|
||||
rc := runner.newRunContext(run, matrix)
|
||||
if len(matrix) > 1 {
|
||||
if len(matrixes) > 1 {
|
||||
rc.Name = fmt.Sprintf("%s-%d", rc.Name, i+1)
|
||||
}
|
||||
if len(rc.String()) > maxJobNameLen {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue