The previous steps are also smoothly, and then write. Gitlab - ci. Yml file:
Image: node: 6.4.1
Stages:
- pages
- deploy
# generate hexo static page
Pages:
Stage: pages
Tags:
- hexo - blog - source - builder
Script:
- CNPM install # use taobao source CNPM to speed up the installation
-./node_modules/hexo/bin/hexo generate
Artifacts:
Paths:
- public
Cache:
Paths:
- node_modules
Key: project
Only:
- master
# will be generated pages submitted to the corresponding repository for automatic deployment
Deploy:
Stage: the deploy
Tags:
- hexo - blog - source - builder
Script:
-./node_modules/hexo/bin/hexo deploy
Dependencies:
- pages
Cache:
Paths:
- node_modules
Key: project
Only:
- master
Part pages can be executed properly, public folder can also pass to deploy normally
But in the deploy performed in hexo deploy, report the following error:
As if said no configuration name and email, but I have configured the global user name and email, even generate a SSH secret key
And I'm in the local manual hexo deploy is completely normal,,,
Below is the server related configuration: