目的是为了使用gitLab CI/CD持续集成gitbook
下面是我的 .gitlab-ci.yml和流水线的日志
gitbook:
stage: build
script:
- pwd
- gitbook init
- gitbook build
流水线日志:
Running with gitlab-runner 15.8.1 (f86890c6)
on dib-runner c90608f0, system ID: s_b192fb01d86c
Preparing the “shell” executor
Using Shell executor…
Preparing environment
Running on lxy-virtual-machine…
Getting source from Git repository
Fetching changes…
Reinitialized existing Git repository in /home/gitlab-runner/builds/c90608f0/0/data-cloud/dib-wiki/.git/
remote: HTTP Basic: Access denied
fatal: Authentication failed for ‘登录 · GitLab’
Cleaning up project directory and file based variables
ERROR: Job failed: exit status 1