feat: set env variable as well
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 2023-12-30 22:00:00 +01:00
parent 8248b61545
commit 830e39e8bf
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -20,7 +20,9 @@ impl SshAgent {
#[async_trait] #[async_trait]
impl DaggerMiddleware for SshAgent { impl DaggerMiddleware for SshAgent {
async fn handle(&self, container: Container) -> eyre::Result<Container> { async fn handle(&self, container: Container) -> eyre::Result<Container> {
let c = container.with_unix_socket("/tmp/ssh_socket", self.socket.clone()); let c = container
.with_unix_socket("/tmp/ssh_socket", self.socket.clone())
.with_env_variable("SSH_AUTH_SOCK", "/tmp/ssh_socket");
Ok(c) Ok(c)
} }