buildx(imagetools): add annotations support for create command

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-03-10 12:06:12 +01:00
parent b732db2937
commit 0cc9e68b03
3 changed files with 43 additions and 0 deletions

View File

@@ -153,6 +153,11 @@ export class ImageTools {
args.push('--platform', platform);
}
}
if (opts.annotations) {
for (const annotation of opts.annotations) {
args.push('--annotation', annotation);
}
}
if (opts.dryRun) {
args.push('--dry-run');
} else {

View File

@@ -32,6 +32,7 @@ export interface CreateOpts {
sources: Array<string>;
tags?: Array<string>;
platforms?: Array<string>;
annotations?: Array<string>;
dryRun?: boolean;
silent?: boolean;
skipExec?: boolean;