europa: vendor universe.dagger.io
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
28
pkg/universe.dagger.io/examples/todoapp/base.cue
Normal file
28
pkg/universe.dagger.io/examples/todoapp/base.cue
Normal file
@@ -0,0 +1,28 @@
|
||||
// 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.output
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user