mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
46 lines
910 B
CUE
46 lines
910 B
CUE
package mortenolsen
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
"dagger.io/dagger/core"
|
|
"universe.dagger.io/docker"
|
|
)
|
|
|
|
dagger.#Plan & {
|
|
_nodeModulesMount: "/node_modules": {
|
|
dest: "/node_modules"
|
|
type: "cache"
|
|
contents: core.#CacheDir & {
|
|
id: "morten-olsen.github-io-modules-cache"
|
|
}
|
|
|
|
}
|
|
client: {
|
|
filesystem: {
|
|
"./": read: {
|
|
contents: dagger.#FS
|
|
exclude: [
|
|
"node_modules",
|
|
"out",
|
|
".next"
|
|
]
|
|
}
|
|
"./docker": read: contents: dagger.#FS
|
|
"./docker/Dockerfile": read: contents: dagger.#FS
|
|
"./_output": write: contents: actions.build.contents.output
|
|
}
|
|
}
|
|
actions: {
|
|
deps: docker.#Build & {
|
|
steps: [
|
|
docker.#Dockerfile & {
|
|
source: client.filesystem."./docker".read.contents
|
|
dockerfile: {
|
|
contents: "foo"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|