mirror of
https://github.com/morten-olsen/morten-olsen.github.io.git
synced 2026-02-08 01:46:28 +01:00
update
This commit is contained in:
45
build.cue
Normal file
45
build.cue
Normal file
@@ -0,0 +1,45 @@
|
||||
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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user