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
// Configure platform execution
platform?: #Platform
platform?: string
// Execute actions in containers
actions: {
@ -142,7 +142,3 @@ _#proxyEndpoint: {
// A network service address
#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

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