1
0

feat: use old debian containers from snapshots

This commit is contained in:
2023-05-14 09:53:59 +00:00
parent bb676fa491
commit f7f8a27dfa
2 changed files with 59 additions and 28 deletions

View File

@ -164,10 +164,14 @@ func GenerateBaseDockerImage(registry string, commands []config.DockerCommand,
d += registry + "/"
}
d += fmt.Sprintf("%s:%s\n",
strings.ToLower(sk.DistroType.String()),
sk.DistroRelease,
)
switch sk.DistroType {
case config.Debian:
d += debian.ContainerImage(sk) + "\n"
default:
d += fmt.Sprintf("%s:%s\n",
strings.ToLower(sk.DistroType.String()),
sk.DistroRelease)
}
for _, c := range commands {
d += "RUN " + c.Command + "\n"