f4afe5d129
Signed-off-by: Sam Alba <sam.alba@gmail.com>
21 lines
298 B
CUE
21 lines
298 B
CUE
package testing
|
|
|
|
import (
|
|
"dagger.io/dagger/op"
|
|
"dagger.io/dagger"
|
|
)
|
|
|
|
source: dagger.#Artifact
|
|
|
|
#up: [
|
|
op.#FetchContainer & {ref: "busybox"},
|
|
op.#Exec & {
|
|
args: ["sh", "-c", """
|
|
set -exu
|
|
[ -f /source/testfile ]
|
|
[ ! -d /source/.dagger ]
|
|
"""]
|
|
mount: "/source": from: source
|
|
},
|
|
]
|