问题描述
几天前,我设置了Gitlab pages
页面.到今天早上,一切都很好.现在,它似乎卡在pending
上,尽管我尝试重新启动它,但它仍未构建.
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.
这是.yml文件.
pages:
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
only:
- master
pages
安装指南此处.
我知道在此处上也有类似的问题该问题已在4个月前解决,并且似乎再次出现了这个问题(至少对我而言).
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).
推荐答案
假设您在上面给出的内容称为.gitlab-ci.yml
的文件,并且您的存储库在分支,那么您可能做对了所有事情.
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
这篇关于Gitlab页面停留在待处理状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!