Skip to content

Commit e058fa2

Browse files
committed
fix(ssh): read the ssh key from dir instead of environment
1 parent ebeb922 commit e058fa2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/builder/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ fi
107107

108108
## SSH key configuration
109109

110-
if [[ -n "$SSH_KEY" ]]; then
110+
if [[ -f "$env_root/SSH_KEY" ]]; then
111111
mkdir -p ~/.ssh/
112112
chmod 700 ~/.ssh/
113113

114-
echo "$SSH_KEY" | base64 -d > ~/.ssh/id_rsa
114+
base64 -d "$env_root/SSH_KEY" > ~/.ssh/id_rsa
115115
chmod 400 ~/.ssh/id_rsa
116116

117117
echo 'StrictHostKeyChecking=no' > ~/.ssh/config

0 commit comments

Comments
 (0)