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
|
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"
|
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user