Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -295,6 +295,31 @@ impl DaggerCuddlePlease {
|
||||
)
|
||||
.with_workdir("/mnt/app")
|
||||
.with_directory(".", client.host().directory(".").id().await?)
|
||||
.with_unix_socket(
|
||||
"/tmp/ssh.sock",
|
||||
client
|
||||
.host()
|
||||
.unix_socket(
|
||||
std::env::var("SSH_AUTH_SOCK").expect("expect SSH_AUTH_SOCK to be present"),
|
||||
)
|
||||
.id()
|
||||
.await?,
|
||||
)
|
||||
.with_env_variable("SSH_AUTH_SOCK", "/tmp/ssh.sock")
|
||||
.with_new_file_opts(
|
||||
"/root/.ssh/config",
|
||||
dagger_sdk::ContainerWithNewFileOpts {
|
||||
contents: Some(
|
||||
"
|
||||
Host *
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile /dev/null
|
||||
",
|
||||
),
|
||||
owner: Some("root"),
|
||||
permissions: Some(700),
|
||||
},
|
||||
)
|
||||
.with_exec(vec![
|
||||
"cuddle-please",
|
||||
"release",
|
||||
|
Reference in New Issue
Block a user