debian-mirror-gitlab/doc/user/project/pages/index.md
2018-11-08 19:23:39 +05:30

5.5 KiB

description
Learn how to use GitLab Pages to deploy a static website at no additional cost.

GitLab Pages

With GitLab Pages it's easy to publish your project website. GitLab Pages is a hosting service for static websites, at no additional cost.

Getting Started

Create a project from scratch to get you started quickly, or, alternatively, start from an existing project as follows:

    1. Fork an example project: by forking a project, you create a copy of the codebase you're forking from to start from a template instead of starting from scratch.
    1. Change a file to trigger a GitLab CI/CD pipeline: GitLab CI/CD will build and deploy your site to GitLab Pages.
    1. Visit your project's Settings > Pages to see your website link, and click on it. Bam! Your website is live! :)

Further steps (optional):

Watch a video with the steps above: https://www.youtube.com/watch?v=TWqh9MtT4Bg

Advanced options:

How Does It Work?

With GitLab Pages you can create static websites for your GitLab projects, groups, or user accounts.

It supports plain static content, such as HTML, and all static site generators (SSGs), such as Jekyll, Middleman, Hexo, Hugo, and Pelican.

Connect as many custom domains as you like and bring your own TLS certificate to secure them.

Your files live in a project repository on GitLab. GitLab CI picks up those files and makes them available at, typically, https://<username>.gitlab.io/<projectname>. Please read through the docs on GitLab Pages domains for more info.

Explore GitLab Pages

Read the following tutorials to know more about:

Blog posts series about Static Site Generators (SSGs):

Blog posts for securing GitLab Pages custom domains with SSL/TLS certificates:

Advanced use

Admin GitLab Pages for CE and EE

Enable and configure GitLab Pages on your own instance (GitLab Community Edition and Enterprise Editions) with the admin guide.

Watch the video: https://www.youtube.com/watch?v=dD8c7WNcc6s

More information about GitLab Pages