Refactor platform type to string to support any kind of platform

Signed-off-by: Vasek - Tom C <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau 2021-12-23 16:21:32 +01:00 committed by Vasek - Tom C
parent 01414f80c9
commit 9927b8d94d
No known key found for this signature in database
GPG Key ID: 175D82E572427960
2 changed files with 5 additions and 9 deletions

View File

@ -28,7 +28,7 @@ package engine
proxy: [endpoint=string]: _#proxyEndpoint proxy: [endpoint=string]: _#proxyEndpoint
// Configure platform execution // Configure platform execution
platform?: #Platform platform?: string
// Execute actions in containers // Execute actions in containers
actions: { actions: {
@ -142,7 +142,3 @@ _#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"

View File

@ -9,7 +9,7 @@ engine.#Plan & {
data: engine.#WriteFile & { data: engine.#WriteFile & {
input: scratch.output input: scratch.output
path: "/test" path: "/test"
mode: 0o600 permissions: 0o600
contents: "foobar" contents: "foobar"
} }
} }