mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 11:51:02 +00:00
Use parsers package instead util for ParseRepositoryTag
This commit is contained in:
parent
4f418b8c3d
commit
1f28664fe3
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue