问题
I set up a Gitlab pages
page a couple of days ago. It was building fine till this morning. Now it seems to be stuck at pending
and hasn't built despite my attempts to restart it.
I checked if there is a shared runner. It currently says:
Available shared runners - 1
in the Runner section of Project Settings.
This is the .yml file.
pages:
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
This code was recommended in the pages
installation guide here.
I am aware that there is a similar question on stack overflow here, however that was resolved 4 months ago, and it seems the issue has re-emerged (at least for me).
回答1:
Assuming the file whose contents you've given above was called .gitlab-ci.yml
, and your repository contained your website's HTML/CSS/JS/etc in the master
branch, then you have probably done everything right.
That being so, what you ran into was probably this known issue, which is being tracked in at least two places:
https://gitlab.com/gitlab-com/support-forum/issues/765
https://gitlab.com/gitlab-com/support-forum/issues/771
来源:https://stackoverflow.com/questions/37326975/gitlab-page-is-stuck-at-pending