FIX allow pushing tags (only latest worked)
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-02-17 01:13:22 +01:00
parent 7dc78fc088
commit 2352c4171f

View File

@@ -202,12 +202,13 @@ func (p Plugin) Exec() error {
cmds = append(cmds, exec.Command(dockerExe, "image", "rm", p.Build.Name))
cmds = append(cmds, exec.Command("tar", "x", "-C", "plugin/rootfs", "-f", "tmp.tar"))
cmds = append(cmds, exec.Command("cp", p.Build.PluginConfig, "plugin/config.json"))
cmds = append(cmds, exec.Command(dockerExe, "plugin", "create", p.Build.Repo, "plugin"))
}
for _, tag := range p.Build.Tags {
if !p.Build.IsPlugin {
cmds = append(cmds, commandTag(p.Build, tag)) // docker tag
} else {
cmds = append(cmds, exec.Command(dockerExe, "plugin", "create", p.Build.Repo+":"+tag, "plugin"))
}
if !p.Dryrun {