Skip to content

Commit c30548d

Browse files
brenuartrohanKanojia
authored andcommitted
Extract cacheFrom from original BuildImageConfiguration as a LIST instead of a STRING
See GH1455
1 parent 34ea02e commit c30548d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/fabric8/maven/docker/config/handler/property/PropertyConfigHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ private BuildImageConfiguration extractBuildConfiguration(ImageConfiguration fro
144144
.cleanup(valueProvider.getString(CLEANUP, config == null ? null : config.getCleanup()))
145145
.noCache(valueProvider.getBoolean(NO_CACHE, config == null ? null : config.getNoCache()))
146146
.squash(valueProvider.getBoolean(SQUASH, config == null ? null : config.getSquash()))
147-
.cacheFrom(valueProvider.getString(CACHE_FROM, config == null ? null : (config.getCacheFrom() == null ? null : config.getCacheFrom().toString())))
147+
.cacheFrom(valueProvider.getList(CACHE_FROM, config == null ? null : config.getCacheFrom()))
148148
.optimise(valueProvider.getBoolean(OPTIMISE, config == null ? null : config.getOptimise()))
149149
.entryPoint(extractArguments(valueProvider, ENTRYPOINT, config == null ? null : config.getEntryPoint()))
150150
.assembly(extractAssembly(config == null ? null : config.getAssemblyConfiguration(), valueProvider))

0 commit comments

Comments
 (0)