如果是用同一个秘钥部署配置如下
deploy:
type: git
repo:
coding: git@git.coding.net:norwaya/norwaya.git,master
github: git@github.com:norwaya/norwaya.github.io.git,master
branch: master
每个代码托管网站有都自己的秘钥的时候配置
deploy:
type: git
repo:
coding: git@git.coding.net:norwaya/norwaya.git,master
github: git@github.com:norwaya/norwaya.github.io.git,master
branch: master
然后要在.ssh 下增加config文件
#github key
Host github.com
Port 22
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/github.id_rsa
# coding key
Host git.coding.net
Port 443
HostName git-ssh.coding.net
PreferredAuthentications publickey
IdentityFile ~/.ssh/coding.id_rsa