Skip to content

Commit 02ef7a2

Browse files
authored
Merge pull request #375 from concourse/refactor-additional-tags
refactor how we create additional tags
2 parents 568a1e3 + 51a070c commit 02ef7a2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

commands/out.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,7 @@ func (o *Out) Execute() error {
124124
}
125125

126126
for _, tagName := range additionalTags {
127-
tag, err := name.NewTag(fmt.Sprintf("%s:%s", req.Source.Repository, tagName))
128-
if err != nil {
129-
return fmt.Errorf("could not resolve repository/tag reference: %w", err)
130-
}
131-
132-
tagsToPush = append(tagsToPush, tag)
127+
tagsToPush = append(tagsToPush, repo.Tag(tagName))
133128
}
134129

135130
if len(tagsToPush) == 0 {

0 commit comments

Comments
 (0)