File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
packages/cli-v3/src/deploy Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1076,7 +1076,9 @@ const BuildKitMetadata = z.object({
10761076 "image.name" : z . string ( ) . optional ( ) ,
10771077} ) ;
10781078
1079- // Don't push if the image tag is a local address, unless the user explicitly wants to push
1079+ // Self-hosted installations commonly use a local registry such as localhost:5000.
1080+ // In that case we still need to push, otherwise the deployment can complete while the
1081+ // supervisor later fails with "No such image".
10801082function shouldPush ( imageTag : string , push ?: boolean ) {
10811083 switch ( push ) {
10821084 case true : {
@@ -1086,11 +1088,7 @@ function shouldPush(imageTag: string, push?: boolean) {
10861088 return false ;
10871089 }
10881090 case undefined : {
1089- return imageTag . startsWith ( "localhost" ) ||
1090- imageTag . startsWith ( "127.0.0.1" ) ||
1091- imageTag . startsWith ( "0.0.0.0" )
1092- ? false
1093- : true ;
1091+ return true ;
10941092 }
10951093 default : {
10961094 assertExhaustive ( push ) ;
You can’t perform that action at this time.
0 commit comments