I have a pipeline running in an azure devops agent where the value of SSH_AUTH_SOCK changes dynamically on every build.
My build pipeline relies on that socket for SSH Authentication before the build of my code (to retrieve dependencies).
This is the pseudo code for my pipeline :
- New(*dagger.Socket)
- Build()
- Set SSH Socket + SSH_AUTH_SOCK env variable on container
- Retrieve dependencies (git pull etc )
- Build the code
I noticed that i'm not hitting the cache. Is that because the address of the socket changes ? If so is there another way ?