DX: change "#dagger: compute: " to "#compute: "

Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
This commit is contained in:
Solomon Hykes
2021-02-12 23:22:41 +00:00
parent 3f445f2421
commit 7a77466a66
81 changed files with 176 additions and 229 deletions

View File

@@ -20,20 +20,20 @@ test: go.#Test & {
}
// Run a command with the binary we just built
help: #dagger: compute: [
help: #compute: [
dagger.#Load & {from: build},
dagger.#Exec & {args: ["dagger", "-h"]},
]
// Build dagger using the (included) Dockerfile
buildWithDocker: #dagger: compute: [
buildWithDocker: #compute: [
dagger.#DockerBuild & {
context: repository
},
]
// Run a command in the docker image we just built
helpFromDocker: #dagger: compute: [
helpFromDocker: #compute: [
dagger.#Load & {from: buildWithDocker},
dagger.#Exec & {args: ["dagger", "-h"]},
]

View File

@@ -6,7 +6,7 @@ import (
"dagger.io/yarn"
)
repository: #dagger: compute: [
repository: #compute: [
dagger.#FetchGit & {
remote: "https://github.com/kabirbaidhya/react-todo-app.git"
ref: "624041b17bd62292143f99bce474a0e3c2d2dd61"

View File

@@ -7,7 +7,7 @@ import (
let alpine = {
digest: "sha256:3c7497bf0c7af93428242d6176e8f7905f2201d8fc5861f45be7a346b5f23436"
package: [string]: true | false | string
#dagger: compute: [
#compute: [
{
do: "fetch-container"
ref: "index.docker.io/alpine@\(digest)"
@@ -33,7 +33,7 @@ www: {
listing: {
string
#dagger: compute: [
#compute: [
dagger.#Load & {
from: alpine
},
@@ -52,7 +52,7 @@ www: {
url: {
string
#dagger: compute: [
#compute: [
{
do: "load"
from: alpine