Merge pull request #165 from dagger/fix-compute-syntax
ported tests + examples to new syntax
This commit is contained in:
commit
cbac2f6978
@ -48,7 +48,7 @@ import (
|
|||||||
outputs: {
|
outputs: {
|
||||||
[string]: string
|
[string]: string
|
||||||
|
|
||||||
#dagger: compute: [
|
#compute: [
|
||||||
dagger.#Load & {
|
dagger.#Load & {
|
||||||
from: alpine.#Image & {
|
from: alpine.#Image & {
|
||||||
package: bash: "=5.1.0-r0"
|
package: bash: "=5.1.0-r0"
|
||||||
|
@ -11,7 +11,7 @@ TestImageVersion: {
|
|||||||
version: "3.10.6"
|
version: "3.10.6"
|
||||||
}
|
}
|
||||||
|
|
||||||
test: #dagger: compute: [
|
test: #compute: [
|
||||||
dagger.#Load & {from: image},
|
dagger.#Load & {from: image},
|
||||||
dagger.#Exec & {
|
dagger.#Exec & {
|
||||||
args: [
|
args: [
|
||||||
@ -31,7 +31,7 @@ TestPackageInstall: {
|
|||||||
package: curl: "=~7.74.0"
|
package: curl: "=~7.74.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
test: #dagger: compute: [
|
test: #compute: [
|
||||||
dagger.#Load & {from: image},
|
dagger.#Load & {from: image},
|
||||||
dagger.#Exec & {
|
dagger.#Exec & {
|
||||||
args: ["jq", "--version"]
|
args: ["jq", "--version"]
|
||||||
|
@ -14,7 +14,7 @@ TestGoBuild: {
|
|||||||
output: "/bin/testbin"
|
output: "/bin/testbin"
|
||||||
}
|
}
|
||||||
|
|
||||||
test: #dagger: compute: [
|
test: #compute: [
|
||||||
dagger.#Load & {from: alpine.#Image},
|
dagger.#Load & {from: alpine.#Image},
|
||||||
dagger.#Exec & {
|
dagger.#Exec & {
|
||||||
args: [
|
args: [
|
||||||
|
@ -13,7 +13,7 @@ TestYarn: {
|
|||||||
source: TestData
|
source: TestData
|
||||||
}
|
}
|
||||||
|
|
||||||
test: #dagger: compute: [
|
test: #compute: [
|
||||||
dagger.#Load & {from: alpine.#Image & {
|
dagger.#Load & {from: alpine.#Image & {
|
||||||
package: bash: "=5.1.0-r0"
|
package: bash: "=5.1.0-r0"
|
||||||
}},
|
}},
|
||||||
|
Reference in New Issue
Block a user