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/.dagger/env/docs/plan/main.cue

24 lines
422 B
CUE
Raw Normal View History

package main
import (
"dagger.io/dagger"
"dagger.io/js/yarn"
"dagger.io/netlify"
)
// dagger repository
repository: dagger.#Artifact @dagger(input)
// Build the docs website
docs: yarn.#Package & {
source: repository
cwd: "tools/daggosaurus/"
buildDir: "tools/daggosaurus/build"
}
// Deploy the docs website
site: netlify.#Site & {
name: string | *"docs-dagger-io" @dagger(input)
contents: docs.build
}