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/europa/universe/examples/todoapp/base.cue
Solomon Hykes e7f1649fe6 A new CUE standard library for the Europa release
Signed-off-by: Solomon Hykes <solomon@dagger.io>
2021-12-13 13:24:45 -08:00

29 lines
515 B
CUE

// Deployment plan for Dagger's example todoapp
package todoapp
import (
"dagger.io/dagger"
"universe.dagger.io/git"
"universe.dagger.io/yarn"
)
dagger.#DAG & {
// Build the app with yarn
actions: build: yarn.#Build
// Wire up source code to build
{
input: directories: source: _
actions: build: source: input.directories.source.contents
} | {
actions: {
pull: git.#Pull & {
remote: "https://github.com/mdn/todo-react"
ref: "master"
}
build: source: pull.checkout
}
}
}