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:
parent
01414f80c9
commit
9927b8d94d
@ -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"
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user