1
0
Fork 0
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:
Casey Lee 2020-03-04 16:24:14 -08:00
parent ed7e10bf8f
commit f5fac4b8b9
2 changed files with 11 additions and 1 deletions

View file

@ -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 {