example: deploy react to netlify

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-02-05 15:35:51 -08:00
parent 579908dbfa
commit 037dacaf6d
2 changed files with 29 additions and 3 deletions

View File

@ -0,0 +1,28 @@
package main
import (
"dagger.io/dagger"
"dagger.io/netlify"
"dagger.io/yarn"
)
repository: #dagger: compute: [
dagger.#FetchGit & {
remote: "https://github.com/kabirbaidhya/react-todo-app.git"
ref: "624041b17bd62292143f99bce474a0e3c2d2dd61"
},
]
todoApp: netlify.#Site & {
account: {
name: "blocklayer"
token: string // Fill using --input-string todoApp.account.token=XXX
}
name: "dagger-test"
contents: yarn.#Script & {
source: repository
run: "build"
}
}

View File

@ -1,6 +1,4 @@
// ACME platform: everything you need to develop and ship improvements to
// the ACME clothing store.
package acme
package simple
import (
"dagger.io/dagger"