feat: add auth sock
Some checks failed
continuous-integration/drone/push Build is failing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-01-28 21:19:02 +01:00
parent 8788f78f81
commit 7a1f04a071
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -80,10 +80,16 @@ impl MainAction for CuddleReleaser {
let folder = client.host().directory(&self.folder);
let ssh_sock = std::env::var("SSH_AUTH_SOCK").context("SSH_AUTH_SOCK not set")?;
let cuddle_releaser = client
.container()
.from(cuddle_releaser_image)
.with_mounted_directory("/mnt/templates", folder);
.with_mounted_directory("/mnt/templates", folder)
.with_unix_socket(
ssh_sock.clone(),
client.host().unix_socket(ssh_sock.clone()),
);
cuddle_releaser
.with_exec(vec![