2fbb9e7744
Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
24 lines
354 B
CUE
24 lines
354 B
CUE
package docker
|
|
|
|
import (
|
|
"alpha.dagger.io/dagger"
|
|
)
|
|
|
|
TestConfig: {
|
|
host: string @dagger(input)
|
|
user: string @dagger(input)
|
|
key: dagger.#Secret @dagger(input)
|
|
}
|
|
|
|
TestSSH: client: #Command & {
|
|
command: #"""
|
|
docker $CMD
|
|
"""#
|
|
ssh: {
|
|
host: TestConfig.host
|
|
user: TestConfig.user
|
|
key: TestConfig.key
|
|
}
|
|
env: CMD: "version"
|
|
}
|