README.md 656 Bytes
Newer Older
Wolfgang Knopki's avatar
Wolfgang Knopki committed
1

GitLab's avatar
GitLab committed
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

---

Example plain HTML site using GitLab Pages.

Learn more about GitLab Pages at https://pages.gitlab.io and the official
documentation https://docs.gitlab.com/ce/user/project/pages/.

---

## GitLab CI

This project's static Pages are built by [GitLab CI][ci], following the steps
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):

```
Wolfgang Knopki's avatar
Wolfgang Knopki committed
18
19
variables:
  EXPORT_DIR: "/var/www/html/pages"
GitLab's avatar
GitLab committed
20

Wolfgang Knopki's avatar
Wolfgang Knopki committed
21
pages-master:
GitLab's avatar
GitLab committed
22
23
  stage: deploy
  script:
Wolfgang Knopki's avatar
Wolfgang Knopki committed
24
25
26
27
28
29
    - mkdir "$EXPORT_DIR/$CI_PROJECT_NAME"	
    - cp -r public/* "$EXPORT_DIR/$CI_PROJECT_NAME"
  tags: 
    - production
  only: 
    - master
GitLab's avatar
GitLab committed
30
31
32
```

The above example expects to put all your HTML files in the `public/` directory.