Skip to content

Commit

Permalink
chore: remove unused param
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Sep 13, 2021
1 parent 4dd6441 commit b086122
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev-tools/mage/dockerbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ func (b *dockerBuilder) Build() error {
return errors.Wrap(err, "failed to prepare build")
}

tag, err := b.dockerBuild(variant)
tag, err := b.dockerBuild()
tries := 3
for err != nil && tries != 0 {
fmt.Println(">> Building docker images again (after 10 s)")
// This sleep is to avoid hitting the docker build issues when resources are not available.
time.Sleep(time.Second * 10)
tag, err = b.dockerBuild(variant)
tag, err = b.dockerBuild()
tries -= 1
}
if err != nil {
Expand Down Expand Up @@ -194,7 +194,7 @@ func (b *dockerBuilder) expandDockerfile(templatesDir string, data map[string]in
return nil
}

func (b *dockerBuilder) dockerBuild(variant string) (string, error) {
func (b *dockerBuilder) dockerBuild() (string, error) {
imageName := b.imageName

taggedImageName := fmt.Sprintf("%s:%s", imageName, b.Version)
Expand Down

0 comments on commit b086122

Please sign in to comment.