mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-02-04 18:21:06 +02:00
Use parsers package instead util for ParseRepositoryTag
This commit is contained in:
parent
4f418b8c3d
commit
1f28664fe3
@ -10,7 +10,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/dotcloud/docker/archive"
|
||||
"github.com/dotcloud/docker/utils"
|
||||
"github.com/dotcloud/docker/pkg/parsers"
|
||||
)
|
||||
|
||||
type Images struct {
|
||||
@ -63,7 +63,7 @@ func (c *ImageService) Create(image string) error {
|
||||
}
|
||||
|
||||
func (c *ImageService) Pull(image string) error {
|
||||
name, tag := utils.ParseRepositoryTag(image)
|
||||
name, tag := parsers.ParseRepositoryTag(image)
|
||||
if len(tag) == 0 {
|
||||
tag = DEFAULTTAG
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user