Allow multible Repos (#22)
close partialy #18 we still need to handle multible registry login Reviewed-on: https://codeberg.org/woodpecker-plugins/plugin-docker-buildx/pulls/22
This commit is contained in:
@@ -122,8 +122,10 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
|
||||
args = append(args, "--platform", strings.Join(build.Platforms.Value()[:], ","))
|
||||
}
|
||||
|
||||
for _, arg := range build.Tags.Value() {
|
||||
args = append(args, "-t", fmt.Sprintf("%s:%s", build.Repo, arg))
|
||||
for _, tag := range build.Tags.Value() {
|
||||
for _, repo := range build.Repo.Value() {
|
||||
args = append(args, "-t", fmt.Sprintf("%s:%s", repo, tag))
|
||||
}
|
||||
}
|
||||
|
||||
for _, l := range build.Labels.Value() {
|
||||
|
||||
Reference in New Issue
Block a user