examples: dogfood!
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
parent
60ce946950
commit
74d3bb81cb
24
examples/dogfood/main.cue
Normal file
24
examples/dogfood/main.cue
Normal file
@ -0,0 +1,24 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"dagger.io/go"
|
||||
)
|
||||
|
||||
repository: dagger.#Dir // Use `--input-dir repository=.` from the root directory of the project
|
||||
|
||||
build: go.#Build & {
|
||||
source: repository
|
||||
packages: "./cmd/dagger"
|
||||
output: "/usr/local/bin/dagger"
|
||||
}
|
||||
|
||||
test: go.#Test & {
|
||||
source: repository
|
||||
packages: "./..."
|
||||
}
|
||||
|
||||
help: #dagger: compute: [
|
||||
dagger.#Load & {from: build},
|
||||
dagger.#Exec & {args: ["dagger", "-h"]},
|
||||
]
|
Reference in New Issue
Block a user