c2766c265b
Signed-off-by: Solomon Hykes <solomon@dagger.io>
33 lines
464 B
CUE
33 lines
464 B
CUE
package docker
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
)
|
|
|
|
// Upload an image to a remote repository
|
|
#Push: {
|
|
// Destination ref
|
|
dest: #Ref
|
|
|
|
// Complete ref after pushing (including digest)
|
|
result: #Ref & _push.result
|
|
|
|
// Registry authentication
|
|
auth?: {
|
|
username: string
|
|
secret: dagger.#Secret
|
|
}
|
|
|
|
// Image to push
|
|
image: #Image
|
|
|
|
_push: dagger.#Push & {
|
|
"dest": dest
|
|
if auth != _|_ {
|
|
"auth": auth
|
|
}
|
|
input: image.rootfs
|
|
config: image.config
|
|
}
|
|
}
|