GitLab steht Mittwoch, den 08. Juli, zwischen 09:00 und 13:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung. 5.48 KB
Newer Older
1 2 3 4
description: 'Learn how to use GitLab Pages to deploy a static website at no additional cost.'

Marcia Ramos's avatar
Marcia Ramos committed
5 6
# 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.
Marcia Ramos's avatar
Marcia Ramos committed
8 9 10

## Getting Started

11 12 13
[Create a project from scratch](
to get you started quickly, or,
alternatively, start from an existing project as follows:
Marcia Ramos's avatar
Marcia Ramos committed

15 16 17 18
- 1. [Fork](../../../gitlab-basics/ 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.
- 2. Change a file to trigger a GitLab CI/CD pipeline: GitLab CI/CD will build and deploy your site to GitLab Pages.
- 3. Visit your project's **Settings > Pages** to see your **website link**, and click on it. Bam! Your website is live! :)
Marcia Ramos's avatar
Marcia Ramos committed
19 20 21

_Further steps (optional):_

22 23
- 4. Remove the [fork relationship](
(_You don't need the relationship unless you intent to contribute back to the example project you forked from_).
Marcia Ramos's avatar
Marcia Ramos committed
24 25 26 27 28 29 30 31 32
- 5. Make it a [user/group website](

**Watch a video with the steps above:**

_Advanced options:_

- [Use a custom domain](
- Apply [SSL/TLS certification]( to your custom domain

## How Does It Work?
Marcia Ramos's avatar
Marcia Ramos committed
34 35

With GitLab Pages you can create [static websites](
36 37 38 39
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.

Marcia Ramos's avatar
Marcia Ramos committed
40 41 42
Connect as many custom domains as you like and bring your own TLS certificate
to secure them.

43 44 45 46 47 48 49
Your files live in a project [repository](../repository/ on GitLab.
[GitLab CI](../../../ci/ picks up those files and makes them available at, typically,
`http://<username><projectname>`. Please read through the docs on 
[GitLab Pages domains]( for more info.

## Explore GitLab Pages

Marcia Ramos's avatar
Marcia Ramos committed
50 51
Read the following tutorials to know more about:

52 53 54 55
- [Static websites and GitLab Pages domains]( Understand what is a static website, and how GitLab Pages default domains work
- [Projects for GitLab Pages and URL structure]( Forking projects and creating new ones from scratch, understanding URLs structure and baseurls
- [GitLab Pages custom domains and SSL/TLS Certificates]( How to add custom domains and subdomains to your website, configure DNS records, and SSL/TLS certificates
- [Creating and Tweaking GitLab CI/CD for GitLab Pages]( Understand how to create your own `.gitlab-ci.yml` for your site
Marcia Ramos's avatar
Marcia Ramos committed
56 57 58 59 60 61 62 63 64 65 66 67 68
- [Technical aspects, custom 404 pages, limitations](
- [Hosting on with GitLab Pages]( (outdated)

_Blog posts series about Static Site Generators (SSGs):_

- [SSGs part 1: Static vs dynamic websites](
- [SSGs part 2: Modern static site generators](
- [SSGs part 3: Build any SSG site with GitLab Pages](

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

- [CloudFlare](
- [Let's Encrypt]( (outdated)

## Advanced use

Marcia Ramos's avatar
Marcia Ramos committed
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
- [Posting to your GitLab Pages blog from iOS](
- [GitLab CI: Run jobs sequentially, in parallel, or build a custom pipeline](
- [GitLab CI: Deployment & environments](
- [Building a new GitLab docs site with Nanoc, GitLab CI, and GitLab Pages](
- [Publish code coverage reports with GitLab Pages](

## 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](../../../administration/pages/

**Watch the video:**

## More information about GitLab Pages

- For an overview, visit the [feature webpage](
- Announcement (2016-12-24): ["We're bringing GitLab Pages to CE"](
- Announcement (2017-03-06): ["We are changing the IP of GitLab Pages on"](