mirror of
https://github.com/dagger/dagger-for-github.git
synced 2025-12-31 12:49:46 +11:00
- Remove AGE key setup - Update README to use `dagger do` - Update tests to dagger 0.2 Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
34 lines
492 B
CUE
Executable file
Generated
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
|
|
}
|