bake: composable attributes for attestations support

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-01-08 15:28:06 +01:00
parent d78e250f06
commit bfc74cf338
4 changed files with 54 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ export interface Group {
export interface Target {
description?: string;
args?: Record<string, string>;
attest?: Array<string>;
attest?: Array<AttestEntry> | Array<string>;
'cache-from'?: Array<CacheEntry> | Array<string>;
'cache-to'?: Array<CacheEntry> | Array<string>;
call?: string;
@@ -50,6 +50,11 @@ export interface Target {
ulimits?: Array<string>;
}
export interface AttestEntry {
type: string;
[key: string]: string;
}
export interface CacheEntry {
type: string;
[key: string]: string;