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:
parent
64847626e7
commit
3856bfd6dd
|
@ -1,2 +0,0 @@
|
||||||
D’2Úä¢ß©Û%•¹%R<>±Þ/–/•ñ±-{4>7–<37>·áŒ/ƒC+Õ1õ:`Ž\ï<04>>ÕrMbh]NëD§F3Xógü¼it¢Eñ=<3D>Îà›IŠFžåV?ÁÊÝràt}±9;h½xm¢¶¬Úý5€¡˜Õ&‘ð“<>LžT¤
|
|
||||||
@0`µE›qµµ]N˜ÇøB<C3B8>øܤyDÛ%.|²QÛ/ZÛ)nŽº\KjxXùn_í‚Œóf_s"p“Äw/„pËAJ¶‰<C2B6>[#<15>Þ3 œöš ®!Í/–Ö•2ÿ8;±GÐ Š¾:LeÂ<65>B’u&ûýÞ÷)Ô7¨› 6Ä5Êu‘Yl!%ØBv3½ì* {9i6NÙ|m›ïà¦T‹~eF#fÓÞJÿ–¾öú§÷À^ÅÉã^8Û«ÂOÊ}ÕÏ®R´]S
vÔþæC´Á=e¬aJÆgç'H ²ì&Nš6^Â"X4+Àí<Éd88<38>=1Ø~Åß¹<C39F>éã%G=‘
|
|
BIN
travis-deploy-key-id_rsa.enc
Normal file
BIN
travis-deploy-key-id_rsa.enc
Normal file
Binary file not shown.
|
@ -38,7 +38,7 @@ fi
|
||||||
|
|
||||||
ssh_dir="$(mktemp -d --suffix=travis-deploy-ssh-keygen)"
|
ssh_dir="$(mktemp -d --suffix=travis-deploy-ssh-keygen)"
|
||||||
mkdir -m 700 "${ssh_dir}/permissions/"
|
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
|
if test "$(git remote get-url origin)" != "${built_repo}"; then
|
||||||
echo "ERROR: The url of the remote \"origin\" in the current repository is"
|
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
|
fi
|
||||||
|
|
||||||
travis login
|
travis login
|
||||||
travis encrypt-file "${ssh_dir}/permissions/id_rsa.pub"
|
travis encrypt-file "${ssh_dir}/permissions/travis-deploy-key-id_rsa"
|
||||||
git add "id_rsa.pub.enc"
|
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;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"
|
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}"
|
rm -fr "${ssh_dir}"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user