Skip to content

Commit 454cc66

Browse files
authored
ci: fix release pod to pod-registry (#747)
1 parent 556192a commit 454cc66

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

bb/src/tools/release.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,15 @@
6161
branch-name (str "datahike-" version)
6262
home (System/getenv "HOME")
6363
ssh-key (System/getenv "GITHUB_SSH_KEY")
64-
github-token (System/getenv "GITHUB_TOKEN")]
64+
github-token (System/getenv "GITHUB_TOKEN")
65+
key-file (str home "/pod-registry-key")]
6566
(println "Loading ssh-key")
6667
(if ssh-key
67-
(spit (str home "/.ssh/pod-registry-key") ssh-key)
68+
(spit key-file ssh-key)
6869
(do
6970
(println "Could not find ssh key")
7071
(System/exit 1)))
71-
(println (:err (b/process {:command-args ["ssh-add" (str home "/.ssh/pod-registry-key")] :out :capture :err :capture})))
72+
(println (:err (b/process {:command-args ["ssh-add" key-file] :out :capture :err :capture})))
7273
(println "Checking out pod-registry")
7374
(b/git-process {:git-args ["clone" "git@github.com:replikativ/pod-registry.git"] :dir "../" :capture :err})
7475
(b/git-process {:git-args ["checkout" "-b" branch-name] :dir "../pod-registry"})

0 commit comments

Comments
 (0)