Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -194,10 +194,7 @@ impl DaggerCuddlePlease {
|
||||
},
|
||||
)
|
||||
.branch("main")
|
||||
.tree_opts(dagger_sdk::GitRefTreeOpts {
|
||||
ssh_auth_socket: Some(socket.id().await?),
|
||||
ssh_known_hosts: None,
|
||||
})
|
||||
.tree()
|
||||
} else {
|
||||
self.client
|
||||
.git_opts(
|
||||
@@ -288,17 +285,16 @@ impl DaggerCuddlePlease {
|
||||
.with_env_variable("SSH_AUTH_SOCK", "/tmp/ssh.sock")
|
||||
.with_new_file_opts(
|
||||
"/root/.ssh/config",
|
||||
dagger_sdk::ContainerWithNewFileOpts {
|
||||
contents: Some(
|
||||
"
|
||||
"
|
||||
Host *
|
||||
User git
|
||||
StrictHostKeyChecking no
|
||||
UserKnownHostsFile /dev/null
|
||||
",
|
||||
),
|
||||
dagger_sdk::ContainerWithNewFileOpts {
|
||||
owner: Some("root"),
|
||||
permissions: Some(700),
|
||||
expand: None,
|
||||
},
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user