This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/examples/react-netlify/main.cue
Andrea Luzzardi cba524eb0f merge Route into Env, rebase dagger compute to use the new API
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-25 22:29:11 +00:00

31 lines
596 B
CUE

package main
import (
"dagger.io/netlify"
"dagger.io/yarn"
"dagger.io/git"
)
repository: git.#Repository & {
remote: "https://github.com/kabirbaidhya/react-todo-app.git"
ref: "624041b17bd62292143f99bce474a0e3c2d2dd61"
}
todoApp: netlify.#Site & {
account: {
// Create an API token in your Netlify account settings
// https://app.netlify.com/user/applications/personal
//
// Fill using --input-string todoApp.account.token=XXX
token: string
}
name: "dagger-example-react-netlify"
contents: yarn.#Script & {
source: repository
run: "build"
env: "xx" :"bar"
}
}