Add #Platform field to #Plan

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Vasek - Tom C 2021-12-22 14:59:26 +01:00
parent 0e5fb4ec29
commit 3af9ba147e
No known key found for this signature in database
GPG Key ID: 175D82E572427960

View File

@ -27,6 +27,9 @@ package engine
// Forward network services to and from the client // Forward network services to and from the client
proxy: [endpoint=string]: _#proxyEndpoint proxy: [endpoint=string]: _#proxyEndpoint
// Configure platform execution
platform?: #Platform
// Execute actions in containers // Execute actions in containers
actions: { actions: {
... ...
@ -139,3 +142,7 @@ _#proxyEndpoint: {
// A network service address // A network service address
#Address: string & =~"^(tcp://|unix://|udp://).*" #Address: string & =~"^(tcp://|unix://|udp://).*"
// Platform supported by buildkit daemon
#Platform: "linux/amd64" | "linux/arm64" | "linux/arm/v7" | "linux/arm/v6" |
"linux/s390x" | "linux/ppc64le" | "darwin/amd64" | "windows/amd64"