mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-20 09:00:13 +01:00
build around container/image, as they depend on a package currently broken on macos
This commit is contained in:
parent
a32468d1fe
commit
dc71096cb4
4 changed files with 45 additions and 179 deletions
|
|
@ -5,10 +5,10 @@ import (
|
|||
"encoding/json"
|
||||
"errors"
|
||||
"fmt"
|
||||
ref "github.com/containers/image/v5/docker/reference"
|
||||
"github.com/containrrr/watchtower/pkg/logger"
|
||||
"github.com/containrrr/watchtower/pkg/registry/helpers"
|
||||
"github.com/containrrr/watchtower/pkg/types"
|
||||
"github.com/docker/distribution/reference"
|
||||
apiTypes "github.com/docker/docker/api/types"
|
||||
"github.com/sirupsen/logrus"
|
||||
"io/ioutil"
|
||||
|
|
@ -132,7 +132,7 @@ func GetAuthURL(challenge string, img string) *url2.URL {
|
|||
|
||||
// GetChallengeURL creates a URL object based on the image info
|
||||
func GetChallengeURL(img string) (url2.URL, error) {
|
||||
normalizedNamed, _ := ref.ParseNormalizedNamed(img)
|
||||
normalizedNamed, _ := reference.ParseNormalizedNamed(img)
|
||||
host, err := helpers.NormalizeRegistry(normalizedNamed.Name())
|
||||
if err != nil {
|
||||
return url2.URL{}, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue