Compare commits

..

No commits in common. "663feba85dc05f2a2cecadb593ca498c96e97250" and "0f7ed2b6f474ea84ed7505798384ada204321442" have entirely different histories.

View File

@ -341,23 +341,15 @@ impl MainAction for RustService {
let update_deployments_docker_image =
"docker.io/kasperhermansen/update-deployment:1690401410";
let dep = self
.client
self.client
.container()
.from(update_deployments_docker_image);
let dep = if let Some(sock) = std::env::var("SSH_AUTH_SOCK").ok() {
dep.with_unix_socket("/tmp/ssh_sock", self.client.host().unix_socket(sock))
.with_env_variable("SSH_AUTH_SOCK", "/tmp/ssh_sock")
} else {
dep.with_env_variable("GIT_USERNAME", "kjuulh")
.from(update_deployments_docker_image)
.with_env_variable("GIT_USERNAME", "git")
.with_env_variable(
"GIT_PASSWORD",
std::env::var("GIT_PASSWORD").expect("GIT_PASSWORD to be set"),
)
};
dep.with_exec(vec![
.with_exec(vec![
"update-deployment",
"--repo",
&format!(