成功管道后,“页面”未显示在“设置”中

时间:2019-01-17 00:17:34

标签: gitlab gitlab-ci

我正在尝试将基本的html文件部署到Gitlab页面。

我一直在使用the documentation并且克隆了this repo,唯一的变化是将自己的html文件添加到public目录中。

这是我的.gitlab-ci.yml文件内容:

pages:
  stage: deploy
  script:
    - mkdir .public
    - cp -r * .public
    - mv .public public
  artifacts:
    paths:
      - public
  only:
    - master

pipleine成功了,根据他们的文档,我应该在“设置”中看到一个页面链接,但这似乎从未显示。

赞赏与此有关的任何提示/建议。

1 个答案:

答案 0 :(得分:1)

图像可能丢失了。足够了,它对我有用。

image: alpine:latest

pages:
  stage: deploy
  when: manual
  script:
  - echo 'Nothing to do...'
  artifacts:
    paths:
    - public/
  only:
  - master
相关问题