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/dogfood/main.cue
Andrea Luzzardi 74d3bb81cb examples: dogfood!
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-02-19 01:25:53 -08:00

25 lines
431 B
CUE

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"]},
]