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() {
|
||||
|
||||
@@ -60,7 +60,7 @@ type Build struct {
|
||||
Pull bool // Docker build pull
|
||||
CacheFrom cli.StringSlice // Docker build cache-from
|
||||
Compress bool // Docker build compress
|
||||
Repo string // Docker build repository
|
||||
Repo cli.StringSlice // Docker build repository
|
||||
NoCache bool // Docker build no-cache
|
||||
AddHost cli.StringSlice // Docker build add-host
|
||||
Quiet bool // Docker build quiet
|
||||
|
||||
Reference in New Issue
Block a user