Merge pull request #8 from blue-build/platforms

feat: Add list of platforms to recipe
This commit is contained in:
xyny 2025-08-17 13:00:55 +03:00 committed by GitHub
commit 472b3f0b9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -50,6 +50,11 @@ model Recipe {
*/
`nushell-version`?: string;
/**
* A list of platforms that will be built for the image.
*/
platforms?: Array<Platform>;
/**
* A list of [stages](https://blue-build.org/reference/stages/) that are executed before the build of the final image.
* This is useful for compiling programs from source without polluting the final bootable image.
@ -64,6 +69,25 @@ model Recipe {
modules: Array<ModuleEntry>;
}
enum Platform {
LinuxAmd64: "linux/amd64",
LinuxAmd64V2: "linux/amd64/v2",
LinuxArm64: "linux/arm64",
LinuxArm: "linux/arm",
LinuxArmV6: "linux/arm/v6",
LinuxArmV7: "linux/arm/v7",
Linux386: "linux/386",
LinuxLoong64: "linux/loong64",
LinuxMips: "linux/mips",
LinuxMipsle: "linux/mipsle",
LinuxMips64: "linux/mips64",
LinuxMips64le: "linux/mips64le",
LinuxPpc64: "linux/ppc64",
LinuxPpc64le: "linux/ppc64le",
LinuxRiscv64: "linux/riscv64",
LinuxS390x: "linux/s390x",
}
@jsonSchema("stage-list-v1.json")
model StageList {
/**