dagger-for-github/test/cue.mod/pkg/universe.dagger.io/docker/pull.cue
Andrea Luzzardi 24d6bfd692 update action to dagger 0.2
- Remove AGE key setup
- Update README to use `dagger do`
- Update tests to dagger 0.2

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-03-09 14:47:41 -08:00

34 lines
492 B
CUE
Executable file
Generated

// Build, ship and run Docker containers in Dagger
package docker
import (
"dagger.io/dagger"
)
// Download an image from a remote registry
#Pull: {
// Source ref.
source: #Ref
// Registry authentication
auth?: {
username: string
secret: dagger.#Secret
}
_op: dagger.#Pull & {
"source": source
if auth != _|_ {
"auth": auth
}
}
// Downloaded image
image: #Image & {
rootfs: _op.output
config: _op.config
}
// FIXME: compat with Build API
output: image
}