Simplify docker.#Run
* `cmd` is renamed to `command` for readability * `script` is removed. Feature moves up the stack (bash.#Run, python.#Run) Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
@@ -51,7 +51,7 @@ import (
|
||||
}
|
||||
},
|
||||
docker.#Run & {
|
||||
cmd: {
|
||||
command: {
|
||||
name: "yarn"
|
||||
args: ["global", "add", "netlify-cli@8.6.21"]
|
||||
}
|
||||
@@ -76,7 +76,10 @@ import (
|
||||
// yarn: version: "=~1.22"
|
||||
// }
|
||||
// steps: [{
|
||||
// run: script: "yarn global add netlify-cli@3.38.10"
|
||||
// run: command: {
|
||||
// name: "sh"
|
||||
// flags: "-c": "yarn global add netlify-cli@3.38.10"
|
||||
// }
|
||||
// }]
|
||||
// }
|
||||
|
||||
@@ -111,7 +114,7 @@ import (
|
||||
contents: token
|
||||
}
|
||||
}
|
||||
cmd: name: "/app/deploy.sh"
|
||||
command: name: "/app/deploy.sh"
|
||||
|
||||
export: files: {
|
||||
"/netlify/url": _
|
||||
|
@@ -54,8 +54,8 @@ dagger.#Plan & {
|
||||
verify: bash.#Run & {
|
||||
input: image.output
|
||||
script: #"""
|
||||
test "$(curl \#(deploy.deployUrl))" = "\#(marker)"
|
||||
"""#
|
||||
test "$(curl \#(deploy.deployUrl))" = "\#(marker)"
|
||||
"""#
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user