From 4ad5ddec00c32b29d3a138eb81a3724b47d75451 Mon Sep 17 00:00:00 2001 From: Dmitry Porunov Date: Fri, 1 Nov 2019 04:15:35 +0400 Subject: [PATCH] Make script enter passphrase --- .gitlab-ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8607b16..af94f21 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -68,8 +68,6 @@ package-aur: # Set up SSH for publishing - mkdir -p /root/.ssh - - echo "$AUR_SSH_PRIVATE" - - sleep 5 - cp ./aur.pub /root/.ssh/id_rsa.pub - echo "$AUR_SSH_PRIVATE" | base64 -d > /root/.ssh/id_rsa - echo "Host aur.archlinux.org" >> /root/.ssh/config @@ -77,7 +75,8 @@ package-aur: - echo " User aur" >> /root/.ssh/config - chmod 600 /root/.ssh/{id_rsa*,config} - eval `ssh-agent -s` - - ssh-add /root/.ssh/id_rsa + # - ssh-add /root/.ssh/id_rsa + - echo -en "${PASSPHRASE}" | ssh-add /root/.ssh/id_rsa - ssh-keyscan -H aur.archlinux.org >> /root/.ssh/known_hosts - git config --global user.name "Dmitry Porunov" - git config --global user.email "dmitry@auteiy.me"