GitLab Pages


GitLab Pages

Publish static websites

Extensively customizable

How it works

Deploy to public/ and…

…create an artifact


Hands-On

  1. Create a new top-level group with a new project
  2. Create a file called index.html

     <html><body>
     <h1>GitLab Pages</h1>Test
     </body></html>
    
  3. Create a files called .gitlab-ci.yml

     pages:
       script:
       - mkdir public
       - cp index.html public
       artifacts:
         paths:
         - public
    
  4. Go to the pages configuration to view your page (Settings Pages)