1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2026-05-17 04:34:24 +02:00
Files
Sven-Hendrik Haase 75c21c53d7 Remove mention of archlinux.org for GitLab Pages usage
This is actually a security issue since it could lead to cookie contamination.
We shouldn't encourage usage of archlinux.org for GitLab Pages.
Some of our project do use it or do have to use it but it's far from the common case.
2026-01-20 18:51:35 +01:00

1.8 KiB

Procedure for adding a GitLab Pages project to GitLab

Details

  • Project name: hello
  • Desired subdomain: hello.archlinux.page

New Pages site checklist

  1. Have a pipeline that outputs some static HTML to public/ during the build.

  2. Specify this path (public/) as an artifact path.

  3. 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

  4. At this page, you'll also need to add your custom domain. Add the custom domain you requested earlier. GitLab will then show domain verification information which you'll need in the next step.

  5. At this point, we'll need to add some stuff to the archlinux_page_gitlab_pages variable in archlinux.tf. It should look something like this. Make sure to substitute the your-domain and your-code-shown-by-gitlab strings accordingly:

     "your-domain" = "your-code-shown-by-gitlab"
    
  6. Run terraform apply and go back to GitLab. Hit Verify and it should pick up the new domain verification code. It should then also automatically begin fetching a certificate via Let's Encrypt. That should take roughly 10min.