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/tests/ignore/main.cue
Tony Worm a1ba7aa59c implement .daggerignore
Signed-off-by: Tony Worm <tony@hofstadter.io>
2021-03-17 19:55:28 -04:00

22 lines
316 B
CUE

package main
import (
"dagger.io/dagger"
"dagger.io/llb"
)
dir: dagger.#Artifact
ignore: {
string
#compute: [
llb.#FetchContainer & { ref: "debian:buster" },
llb.#Exec & {
args: ["bash", "-c", "ls -lh /src > /out.txt"]
mount: "/src": { from: dir }
},
llb.#Export & { source: "/out.txt" },
]
}