Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
3662b343b6
commit
1d2cba49aa
@ -295,6 +295,31 @@ impl DaggerCuddlePlease {
|
|||||||
)
|
)
|
||||||
.with_workdir("/mnt/app")
|
.with_workdir("/mnt/app")
|
||||||
.with_directory(".", client.host().directory(".").id().await?)
|
.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![
|
.with_exec(vec![
|
||||||
"cuddle-please",
|
"cuddle-please",
|
||||||
"release",
|
"release",
|
||||||
|
@ -11,7 +11,7 @@ pub async fn main() -> eyre::Result<()> {
|
|||||||
token: std::env::var("CUDDLE_PLEASE_TOKEN")
|
token: std::env::var("CUDDLE_PLEASE_TOKEN")
|
||||||
.expect("CUDDLE_PLEASE_TOKEN to be present"),
|
.expect("CUDDLE_PLEASE_TOKEN to be present"),
|
||||||
},
|
},
|
||||||
log_level: None,
|
log_level: Some(dagger_cuddle_please::models::LogLevel::Debug),
|
||||||
use_ssh_socket: true,
|
use_ssh_socket: true,
|
||||||
})
|
})
|
||||||
.await?;
|
.await?;
|
||||||
|
Loading…
Reference in New Issue
Block a user