Add support for build workspace option when building images

Closes gh-37478
This commit is contained in:
Scott Frederick
2023-09-20 13:30:20 -05:00
parent d8576f319e
commit 4433fcd1f2
19 changed files with 239 additions and 58 deletions

View File

@@ -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());
}