Docs: move draft articles to "guides"
Signed-off-by: Solomon Hykes <solomon@dagger.io>
This commit is contained in:
23
docs/plans/docker-cli-load/local.cue
Normal file
23
docs/plans/docker-cli-load/local.cue
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"universe.dagger.io/docker"
|
||||
"universe.dagger.io/docker/cli"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
client: network: "unix:///var/run/docker.sock": connect: dagger.#Socket
|
||||
|
||||
actions: {
|
||||
build: docker.#Build & {
|
||||
...
|
||||
}
|
||||
|
||||
load: cli.#Load & {
|
||||
image: build.output
|
||||
host: client.network."unix:///var/run/docker.sock".connect
|
||||
tag: "myimage"
|
||||
}
|
||||
}
|
||||
}
|
30
docs/plans/docker-cli-load/ssh.cue
Normal file
30
docs/plans/docker-cli-load/ssh.cue
Normal file
@@ -0,0 +1,30 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"dagger.io/dagger"
|
||||
"universe.dagger.io/docker"
|
||||
"universe.dagger.io/docker/cli"
|
||||
)
|
||||
|
||||
dagger.#Plan & {
|
||||
client: filesystem: {
|
||||
"~/.ssh/id_rsa": read: contents: dagger.#Secret
|
||||
"~/.ssh/known_hosts": read: contents: dagger.#Secret
|
||||
}
|
||||
|
||||
actions: {
|
||||
build: docker.#Build & {
|
||||
...
|
||||
}
|
||||
|
||||
load: cli.#Load & {
|
||||
image: build.output
|
||||
tag: "myimage:v2"
|
||||
host: "ssh://root@93.184.216.34"
|
||||
ssh: {
|
||||
key: client.filesystem."~/.ssh/id_rsa".read.contents
|
||||
knownHosts: client.filesystem."~/.ssh/known_hosts".read.contents
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user