Make script enter passphrase
This commit is contained in:
parent
cfb6b6cf86
commit
8877137026
@ -68,8 +68,6 @@ package-aur:
|
|||||||
|
|
||||||
# Set up SSH for publishing
|
# Set up SSH for publishing
|
||||||
- mkdir -p /root/.ssh
|
- mkdir -p /root/.ssh
|
||||||
- echo "$AUR_SSH_PRIVATE"
|
|
||||||
- sleep 5
|
|
||||||
- cp ./aur.pub /root/.ssh/id_rsa.pub
|
- cp ./aur.pub /root/.ssh/id_rsa.pub
|
||||||
- echo "$AUR_SSH_PRIVATE" | base64 -d > /root/.ssh/id_rsa
|
- echo "$AUR_SSH_PRIVATE" | base64 -d > /root/.ssh/id_rsa
|
||||||
- echo "Host aur.archlinux.org" >> /root/.ssh/config
|
- echo "Host aur.archlinux.org" >> /root/.ssh/config
|
||||||
@ -77,7 +75,8 @@ package-aur:
|
|||||||
- echo " User aur" >> /root/.ssh/config
|
- echo " User aur" >> /root/.ssh/config
|
||||||
- chmod 600 /root/.ssh/{id_rsa*,config}
|
- chmod 600 /root/.ssh/{id_rsa*,config}
|
||||||
- eval `ssh-agent -s`
|
- 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
|
- ssh-keyscan -H aur.archlinux.org >> /root/.ssh/known_hosts
|
||||||
- git config --global user.name "Dmitry Porunov"
|
- git config --global user.name "Dmitry Porunov"
|
||||||
- git config --global user.email "dmitry@auteiy.me"
|
- git config --global user.email "dmitry@auteiy.me"
|
||||||
|
Loading…
Reference in New Issue
Block a user