mirror of
https://github.com/containrrr/watchtower.git
synced 2026-02-22 23:24:06 +01:00
add some more tests and debug logs
This commit is contained in:
parent
2b68874087
commit
0c704ce02b
9 changed files with 727 additions and 39 deletions
|
|
@ -12,7 +12,6 @@ import (
|
|||
// BuildManifestURL from raw image data
|
||||
func BuildManifestURL(image apiTypes.ImageInspect) (string, error) {
|
||||
img, tag := extractImageAndTag(image)
|
||||
|
||||
hostName, err := ref.ParseNormalizedNamed(img)
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
|
@ -23,6 +22,9 @@ func BuildManifestURL(image apiTypes.ImageInspect) (string, error) {
|
|||
return "", err
|
||||
}
|
||||
img = strings.TrimPrefix(img, fmt.Sprintf("%s/", host))
|
||||
if !strings.Contains(img, "/") {
|
||||
img = "library/" + img
|
||||
}
|
||||
url := url2.URL{
|
||||
Scheme: "https",
|
||||
Host: host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue