a1e6570232
Signed-off-by: Solomon Hykes <sh.github.6811@hykes.org>
47 lines
717 B
CUE
47 lines
717 B
CUE
package docker
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
"dagger.io/dagger/op"
|
|
)
|
|
|
|
// Build a Docker image from source, using included Dockerfile
|
|
#Build: {
|
|
source: dagger.#Artifact
|
|
|
|
#up: [
|
|
op.#DockerBuild & {
|
|
context: source
|
|
},
|
|
]
|
|
|
|
}
|
|
|
|
// Build a Docker image from source, using included Dockerfile
|
|
// FIXME: DEPRECATED by #Build
|
|
#ImageFromSource: #Build
|
|
|
|
// Fetch an image from a remote registry
|
|
#ImageFromRegistry: {
|
|
ref: string
|
|
|
|
#up: [
|
|
op.#FetchContainer & {
|
|
"ref": ref
|
|
},
|
|
]
|
|
}
|
|
|
|
// Build a Docker image from the provided Dockerfile contents
|
|
#ImageFromDockerfile: {
|
|
dockerfile: string
|
|
context: dagger.#Artifact
|
|
|
|
#up: [
|
|
op.#DockerBuild & {
|
|
"context": context
|
|
"dockerfile": dockerfile
|
|
},
|
|
]
|
|
}
|