Skip to content

Commit

Permalink
Fix incorrect tag name used to check for the existence of built docke…
Browse files Browse the repository at this point in the history
…r images (#374)
  • Loading branch information
deadlycoconuts authored Apr 5, 2024
1 parent 7515693 commit 2aa0d13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/turing/imagebuilder/imagebuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"net/http"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -122,7 +121,7 @@ func newImageBuilder(

func (ib *imageBuilder) BuildImage(request BuildImageRequest) (string, error) {
imageName := ib.nameGenerator.generateDockerImageName(request.ProjectName, request.ResourceName)
imageExists, err := ib.checkIfImageExists(imageName, strconv.Itoa(int(request.ResourceID)))
imageExists, err := ib.checkIfImageExists(imageName, request.VersionID)
imageRef := fmt.Sprintf("%s:%s", imageName, request.VersionID)
if err != nil {
log.Errorf("Unable to check existing image ref: %v", err)
Expand Down

0 comments on commit 2aa0d13

Please sign in to comment.