Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gitlab: missing pages artifacts

Tags:

docker

gitlab

My gitlab page can't proceed to deployment eventhough build passed says artifacts are missing. I'm currently following the tutorial from https://about.gitlab.com/features/pages/ and using template https://gitlab.com/pages/plain-html

Please see screenshots: screenshot of job screenshot of compose file

You can checkout my repo here: https://gitlab.com/jairus.jsx/portfolio Any help would be greatly appreciated thanks!

like image 450
Lelouch Avatar asked Dec 20 '17 14:12

Lelouch


People also ask

Where artifacts are stored in GitLab?

The artifacts are stored by default in /var/opt/gitlab/gitlab-rails/shared/artifacts . Save the file and reconfigure GitLab for the changes to take effect.

How long GitLab keep artifacts?

By default pipeline artifacts are deleted after 7 days if they are not locked. This feature locks the artifact if it is from the most recent successful pipeline and unlocks any other pipeline artifacts at the same time so they can be deleted at that 7 day mark.

How artifacts work in GitLab?

Artifacts are files created as part of a build process that often contain metadata about that build's jobs like test results, security scans, etc. These can be used for reports that are displayed directly in GitLab or can be published to GitLab Pages or in some other way for users to review.


1 Answers

to all experiencing the same error just update your .gitlab-ci.yml :)

image: alpine:latest

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

this way, your public folder gets updated everytime you build

like image 109
Lelouch Avatar answered Nov 14 '22 18:11

Lelouch