Move SemVerTag to its own package

This commit is contained in:
2020-11-10 22:14:41 +01:00
parent 28c9f61569
commit 04fa50d9ae
7 changed files with 71 additions and 68 deletions

View File

@ -2,6 +2,7 @@ package main
import (
"github.com/docker/docker/client"
"hulthe.net/lookbuilding/internal/pkg/semver"
)
var (
@ -82,7 +83,7 @@ func checkAndDoUpdate() {
Logger.Infof(`tags in registry for "%s": %d`, name, len(repoTags))
for _, tag := range repoTags {
svt := parseTagAsSemVer(tag.Name)
svt := semver.ParseTagAsSemVer(tag.Name)
Logger.Infof(`tag_name="%s" semver=%t digest=%s`, tag.Name, svt != nil, tag.Digest)
}