Home > OS >  /turn to for help on using Gitlab - CI automated build Hexo times unable to auto - detect email addr
/turn to for help on using Gitlab - CI automated build Hexo times unable to auto - detect email addr

Time:09-20

Intend to deploy on gitlab hexo source code today, with the realization of automatic build functional gitlab - runner hexo static page generation
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:
reference
OS - Linux 3.10.0-1062.9.1. El7. X86_64 Linux x64
Git - 2.9.0
Gitlab - ce - 11.3.4 (localization)
Gitlab - runner - 11.3.1
Nodejs - v10.12.0
NPM - 6.4.1
CNPM - 6.1.1
Hexo cli - 3.1.0 installation (global)
According to the official document to guide the global installed hexo deployer - git


Here is my local relevant configuration:
The
reference
OS - Windows_NT 10.0.18362 win32 x64
Git - 2.18.0. Windows. 1
Nodejs - v10.12.0
NPM - 6.4.1
Hexo - 3.9.0
Hexo cli - 2.0.0


Below is my gitlab - runner related configuration:

Registration when I choose the actuator is shell

Have two days to known the mistake, hope who can save my life!!!!!!

CodePudding user response:

Emmmm forgot to say, all the above operation is done directly by the root user (which is by the root user login server background, and then install all sorts of things)
  • Related