Commit 426a8ecc7db27c3b811c2f7e9d5aef9c7ec57023

Thomas de Grivel 2021-11-30T18:04:15

rename auth id for deploy keys

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/lib/kmxgit/repository_manager/repository.ex b/lib/kmxgit/repository_manager/repository.ex
index ea2e90d..78399af 100644
--- a/lib/kmxgit/repository_manager/repository.ex
+++ b/lib/kmxgit/repository_manager/repository.ex
@@ -156,7 +156,8 @@ defmodule Kmxgit.RepositoryManager.Repository do
   end
 
   def deploy_user(repo) do
-    "_deploy_#{full_slug(repo)}"
+    slug = repo |> full_slug() |> String.replace(~r(.+/), "__")
+    "_deploy_#{slug}"
   end
 
   def deploy_keys_with_env(repo) do