feat: set env variable as well
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
8248b61545
commit
830e39e8bf
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user