Skip to content

Commit 5b7afd8

Browse files
committed
use value of taggedImage instead of function to check if image is already built
1 parent cdf91e4 commit 5b7afd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/setup/deployment/packaging/container.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ func SetupContainerImageDeployment(function string, provider string, compressedI
6363

6464
taggedImage := fmt.Sprintf("%s_%v_stellar:latest", function, compressedImageSizeMebibyte)
6565
imageName := fmt.Sprintf("%s/%s", privateRepoURI, taggedImage)
66-
if builtImages[function] {
67-
log.Infof("Container image for function %q is already built. Skipping...", function)
66+
if builtImages[taggedImage] {
67+
log.Infof("Container image for function %q is already built. Skipping...", taggedImage)
6868
return imageName
6969
}
7070

@@ -78,6 +78,6 @@ func SetupContainerImageDeployment(function string, provider string, compressedI
7878
if provider == "aws" {
7979
amazon.AWSSingletonInstance.ImageURI = imageName
8080
}
81-
builtImages[function] = true
81+
builtImages[taggedImage] = true
8282
return imageName
8383
}

0 commit comments

Comments
 (0)