Home > other >  /turn post about using gitlab - runner automated build hexo can't find the git user configurati
/turn post about using gitlab - runner automated build hexo can't find the git user configurati

Time:10-01

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:

Above is not a reminder of the set up and account
Git config - global user. Eamail ""
Git config - global user. The name ""
It is ok to set up

CodePudding user response:

reference 1/f, a dream is to set sail reply:
not reminded set above email address and account?
Git config - global user. Eamail ""
Git config - global user. The name ""
It is ok to set the


On my machine has set up a global mailbox and account, also not
Is set in the right place!

He is in gitlab - runner hexo - generated when d. Deploy_git directory. The git/config file can't find the account number and password, but I performed manually hexo -d command would be no problem

CodePudding user response:

Set up a few blogs, are set in the Git directly, didn't try set in a file, file and Git set or is there a difference,

CodePudding user response:

reference 4 floor dream can begin to reply:
set up a few blogs, are set in the Git directly, didn't try set in a file, the file and the setting of Git or differentiated,

Not a big problem, what are you doing on the Git setup is exist. Git/config file ah (stand hand in hand)
I'm just curious why gitlab - runner automated build configuration can't read the Git

CodePudding user response:

I also don't know much about the function of the Git, can't help you, you can try to search more

CodePudding user response:

refer to 6th floor dream can begin to reply:
I also don't know much about the function of the Git, can't help you, can search the next try

No wow or I wouldn't be so depressed, 23333
  • Related