Add support for build workspace option when building images
Closes gh-37478
This commit is contained in:
@@ -69,6 +69,8 @@ public class Image {
|
||||
|
||||
List<String> tags;
|
||||
|
||||
CacheInfo buildWorkspace;
|
||||
|
||||
CacheInfo buildCache;
|
||||
|
||||
CacheInfo launchCache;
|
||||
@@ -243,6 +245,9 @@ public class Image {
|
||||
if (!CollectionUtils.isEmpty(this.tags)) {
|
||||
request = request.withTags(this.tags.stream().map(ImageReference::of).toList());
|
||||
}
|
||||
if (this.buildWorkspace != null) {
|
||||
request = request.withBuildWorkspace(this.buildWorkspace.asCache());
|
||||
}
|
||||
if (this.buildCache != null) {
|
||||
request = request.withBuildCache(this.buildCache.asCache());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user