我正在嘗試遵循this指令集。試圖從travis-ci部署到gh頁面
我的travis日誌是here。
0.01s$ openssl aes-256-cbc -K $encrypted_4b2755af321b_key -iv $encrypted_4b2755af321b_iv -in etc/deploy.enc -out ~/.ssh/publish-key -d
before_install.2
0.00s$ chmod u=rw,og= ~/.ssh/publish-key
before_install.3
0.00s$ echo "Host github.com" >> ~/.ssh/config
before_install.4
0.00s$ echo " IdentityFile ~/.ssh/publish-key" >> ~/.ssh/config
before_install.5
0.00s$ git --version
git version 1.8.5.6
before_install.6
0.01s$ git remote set-url origin [email protected]:zaun/riot-ui.git
$ git fetch origin -f gh-pages:gh-pages
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Enter passphrase for key '/home/travis/.ssh/publish-key':
Done: Job Cancelled
該作業掛起/home/travis/.ssh/publish-key
。密鑰沒有密碼。擊中Enter
會使腳本繼續。
我before_install
步處理,關鍵是這樣的:
before_install:
- openssl aes-256-cbc -K $encrypted_4b2755af321b_key -iv $encrypted_4b2755af321b_iv -in etc/deploy.enc -out ~/.ssh/publish-key -d
- chmod u=rw,og= ~/.ssh/publish-key
- ssh-keyscan github.com >> ~/.ssh/known_hosts
- echo "Host github.com" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/publish-key" >> ~/.ssh/config
- git --version
- git remote set-url origin [email protected]:zaun/riot-ui.git
- git fetch origin -f gh-pages:gh-pages
我在做什麼錯?我如何得到這個工作?