mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2026-08-06 12:12:58 +02:00
Fixes #702. Co-authored-by: Kristian Klausen <kristian@klausen.dk>
1.8 KiB
1.8 KiB
Procedure for adding a GitLab Pages project to GitLab
Details
- Project name: hello
- Desired subdomain: Either hello.archlinux.page or hello.archlinux.org
New Pages site checklist
- Have a pipeline that outputs some static HTML to
public/during the build. - Specify this path (
public/) as an artifact path. - GitLab should now recognize that you're trying to use Pages and will show some relevant information at https://gitlab.archlinux.org/your-namespace/your-project/pages
- On this page, you'll also need to make sure that Use unique domain is toggled ON. Note down the custom domain.
For a custom domain at *.archlinux.page
- Add a mapping between the domain name and its generated unique domain
from GitLab that you noted earlier into
gitlab_pages_archlinux_org_mapinhost_vars/gitlab.archlinux.org/misc.yml. - Run
ansible-playbook playbooks/gitlab.archlinux.org.yml -t gitlab.
For a custom domain at *.archlinux.org
Please note that we don't give out custom domains under *.archlinux.org lightly.
- Add the desired domain name into
archlinux_org_gitlab_pagesintf-stage1/archlinux.tf. - Add a mapping between the domain name and its generated unique domain
from GitLab that you noted earlier into
gitlab_pages_archlinux_org_mapinhost_vars/gitlab.archlinux.org/misc.yml. - Run
terraform apply. - Run
ansible-playbook playbooks/gitlab.archlinux.org.yml -t gitlab.