Fix nonsense in make-travis-key: the public key was encrypted, instead of the private key, and had the wrong name anyway.

This commit is contained in:
Georges Dupéron 2018-06-30 18:26:52 +02:00
parent 64847626e7
commit 3856bfd6dd
3 changed files with 4 additions and 6 deletions

View File

@ -1,2 +0,0 @@
D2Úä¢ß©Û%•¹%R<>±Þ//•ñ±-{4>7<37>·áŒ/ƒC+Õ1õ:`Ž\ï<04>>ÕrMbh]F3Xógü¼it¢ Eñ=<3D>ÎàIŠFžåV?ÁÊÝràt}±9;h½xm¢¶¬Úý5€¡˜Õ&‘ð<>LžT¤
@0`µEµ]N˜ÇøB<C3B8>øܤyDÛ%.|²/ZÛ)nŽº\KjxXùnŒóf_s"p“Äw/„pËAJ¶‰<C2B6>[#<15>Þ3 œöš ®!Í/Ö•2ÿ 8;±GÐ Š¾:L<65>Bu&ûýÞ÷)Ô7¨ 6Ä5ÊuYl!%ØBv3½­ì* {9i6­NÙ|mïà¦T~eF#fÓÞJÿ¾öú§÷À^ÅÉã^8Û«ÂOÊ}ÕÏ®R´]S vÔþæC´Á=e¬aJÆgç'H ²ì&Nš6^Â"X4+Àí<Éd88<38>=1Ø~Åß¹<C39F>éã%G=

Binary file not shown.

View File

@ -38,7 +38,7 @@ fi
ssh_dir="$(mktemp -d --suffix=travis-deploy-ssh-keygen)"
mkdir -m 700 "${ssh_dir}/permissions/"
ssh-keygen -N '' -f "${ssh_dir}/permissions/id_rsa"
ssh-keygen -N '' -f "${ssh_dir}/permissions/travis-deploy-key-id_rsa"
if test "$(git remote get-url origin)" != "${built_repo}"; then
echo "ERROR: The url of the remote \"origin\" in the current repository is"
@ -50,10 +50,10 @@ if test "$(git remote get-url origin)" != "${built_repo}"; then
fi
travis login
travis encrypt-file "${ssh_dir}/permissions/id_rsa.pub"
git add "id_rsa.pub.enc"
travis encrypt-file "${ssh_dir}/permissions/travis-deploy-key-id_rsa"
git add "travis-deploy-key-id_rsa.enc"
printf "\033[1;32mNow copy the following public SSH key and add it as a\033[m\n"
printf "\033[1;32mread-write deploy key for the repository \033[1;33m${deploy_repo}\033[1;32m on GitHub.\033[m\n"
cat "${ssh_dir}/permissions/id_rsa.pub"
cat "${ssh_dir}/permissions/travis-deploy-key-id_rsa.pub"
rm -fr "${ssh_dir}"