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/tasks/scratch/scratch_build_scratch.cue

26 lines
430 B
CUE
Raw Normal View History

package main
import (
"alpha.dagger.io/europa/dagger/engine"
)
engine.#Plan & {
actions: {
write: engine.#WriteFile & {
input: engine.#Scratch
path: "/.dockerignore"
contents: "Dockerfile"
permissions: 700
}
build: engine.#Build & {
source: write.output
dockerfile: contents: """
FROM scratch
"""
// Assert that output is engine.#Scratch
output: engine.#Scratch
}
}
}