2020-02-19 21:16:40 -06:00
|
|
|
package cmd
|
|
|
|
|
|
|
|
import (
|
|
|
|
"strings"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (i *Input) newPlatforms() map[string]string {
|
|
|
|
platforms := map[string]string{
|
2021-12-22 13:34:18 -06:00
|
|
|
"ubuntu-latest": "node:16-buster-slim",
|
2022-05-17 14:11:33 -05:00
|
|
|
"ubuntu-22.04": "node:16-bullseye-slim",
|
2021-12-22 13:34:18 -06:00
|
|
|
"ubuntu-20.04": "node:16-buster-slim",
|
|
|
|
"ubuntu-18.04": "node:16-buster-slim",
|
2020-02-19 21:16:40 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
for _, p := range i.platforms {
|
|
|
|
pParts := strings.Split(p, "=")
|
|
|
|
if len(pParts) == 2 {
|
2023-11-12 11:40:06 -06:00
|
|
|
platforms[strings.ToLower(pParts[0])] = pParts[1]
|
2020-02-19 21:16:40 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return platforms
|
|
|
|
}
|