05d79e8ba6
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
31 lines
611 B
CUE
31 lines
611 B
CUE
package main
|
|
|
|
import (
|
|
"dagger.io/dagger"
|
|
"universe.dagger.io/docker"
|
|
"universe.dagger.io/docker/cli"
|
|
)
|
|
|
|
dagger.#Plan & {
|
|
client: filesystem: {
|
|
"/home/user/.ssh/id_rsa": read: contents: dagger.#Secret
|
|
"/home/user/.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."/home/user/.ssh/id_rsa".read.contents
|
|
knownHosts: client.filesystem."/home/user/.ssh/known_hosts".read.contents
|
|
}
|
|
}
|
|
}
|
|
}
|