136 questions
1
vote
1
answer
22
views
Hugo site on GitLab Pages – sitemap.xml shows gitlab.io domain instead of custom domain
The site works fine on my custom domain (e.g. https://www.example.com/), but in the generated sitemap.xml (and also in RSS feeds) the URLs still point to the GitLab Pages default URL (https://project-...
1
vote
0
answers
114
views
DocC (Xcode 16) generates empty index.html for static site despite valid .doccarchive & JSON data
I'm using Xcode 16.2 to generate static HTML documentation for my iOS project SwiftfulCrypto for GitLab Pages.
Problem
The main index.html files in the static HTML output are empty or very small (~2KB)...
0
votes
0
answers
87
views
GitLab Pages -- Pipeline (Deploy Stage Passing), but pages URL is missing
Summary
I am trying to deploy a static site to GitLab pages. My intended flow is as follows:
Build the project locally (this is a static html, with some assets)
Push it to GitLab --> Let the ...
1
vote
0
answers
97
views
gitlab pages: user.gitlab.io being served at user.gitlab.io/user.gitlab.io
As per https://docs.gitlab.com/ee/user/project/pages/getting_started_part_one.html#user-and-group-website-examples:
Under your username, john, you created a project called john.gitlab.io. Your ...
1
vote
0
answers
87
views
Issue with count API key creation
hope you're having a great learning experience. I've been trying to integrate CountAPI into a website hosted on GitLab Pages. However, I'm finding it challenging to generate the CountAPI key.
The ...
0
votes
1
answer
148
views
Sphinx error while GItLab Pages deploy/ It cannot find part of my modules
I am trying to deploy my Sphinx docs on GitLab. But it is ignores some modules. Please tell me what i am doing wrong. I am do the same things on my host machine and it works, but on gitlab pages dont ...
1
vote
3
answers
758
views
How to deploy Docusaurus site from subfolder (not root) of repository
I want to place all of my Docusaurus site files into a subfolder called website inside my project repo and have my site deploy properly.
I have noticed Docusaurus sites that have done this (for ...
1
vote
0
answers
168
views
Does GitLab Pages provide ability to serve static assets?
I'm working on a ui-component library and we use Storybook to preview our components. To access our assets (icons, images, fonts) we use absolute domain paths like so /public/icons.
This approach ...
1
vote
0
answers
102
views
Why is gitlab pages not working with directories?
I'm trying to deploy static pages with gitlab ci, and create a directory for each branch and commit. Similar to Gitlab pages - Incremental deploy But when I try to look at the branch it gives me a 404....
7
votes
2
answers
576
views
Gitlab pages "root" page
I have set up a gitlab server and gitlab pages for our company internal gitlab.
The configuration was made according to Pages domain with tls support without wildcard dns.
The pages work correctly and ...
0
votes
1
answer
341
views
GitLab pipeline builds and deploys but page doesn't show right
I have a default Create React App that can run fine locally on my computer. I pushed it with git to a GitLab repository which is connected to GitLab Pages on the URL: https://reactwebsitetobetested-...
0
votes
0
answers
364
views
Gitlab pages not deploying even with pipeline successful
I am trying to deploy a GitLab Pages static site using html generated by sphinx. My .gitlab-ci.yml file is as follows:
image: alpine:latest
pages:
tags:
- sphinx
stage: deploy
script:
- ...
0
votes
1
answer
162
views
Gitlab Pages CI - React App build from subdirectory
I have a project repository that consists of a backend directory and React app frontend. I want the app to be served from Gitlab Page.
MyRepo/
├─ frontend/
│ ├─ src/
│ │ ├─ App.js
│ │ ├─ index.js
...
2
votes
1
answer
2k
views
Unexpected GitLab page URL
I had a Gitlab Pages hosted at https://username.gitlab.io/project/. I deleted and recreated the project (https://gitlab.com/username/project/) to start again with a clean history.
The page url is now ...
1
vote
1
answer
600
views
(Status: 302) Gitlab Pages JSON translation files CORS policy error & redirect
I have an Angular project in which I use JSON files (path: src/assets/i18n)to translate the content into different languages. I put my project on Gitlab Pages, but I get the following error:
Access ...
1
vote
1
answer
65
views
Prevent hotlinking on gitlab pages
We host a website via GitLab Pages (static website generation) and have recently encountered a problem.
In the licence for our fonts (or in the installation details) it is mentioned that we should ...
2
votes
1
answer
427
views
How can I disable GitLab Pages default domain when using a custom one?
When using a custom domain for GitLab Pages (i.e. mysite.com), it seems that default domain (myaccount.gitlab.io/mysite) is also active, so content is published in both domains at once.
How can I ...
0
votes
1
answer
740
views
Gitlab pages always shows 404 error when opening artifacts
We use a self hosted gitlab ce (Omnibus-Installation on Ubuntu 22.04) for our project repository. The bundled nginx is disabled, because there are other services running that also use the webserver. ...
1
vote
1
answer
1k
views
Retrieve 502 errors during dotnet restore using gitlab package registry
Have some issue during running dotnet restore. I have GitLab private package registry, and during dotnet restore I have a bunch of 502 errors during restore. It seems that it tries to get external ...
1
vote
1
answer
1k
views
Publish static HTML to GitLab pages (no build, no CI/CD)
I have a collection of static HTML pages that I want to publish to GitLab Pages. These HTML documents were rendered as part of a computationally intensive snakemake workflow running on a HPC. The ...
2
votes
4
answers
1k
views
Minimal .gitlab-ci.yml file for deploying a plain HTML website
I have a static HTML website with the following structure:
.
├── index.html
└── images/
├── a.jpg
├── b.jpg
└── c.jpg
I found the following configuration in a blog post from 2016:
pages:
...
2
votes
0
answers
2k
views
GitLab CI pipeline not triggered on commit (and commit not showing up in Activity feed)
I just started having a problem when I commit to my repo:
commit doesn't trigger CI pipeline, even though it should
commit doesn't show up in the Activity feed
I have a repo on GitLab, and have been ...
0
votes
1
answer
284
views
Cobertura page is empty/unknown after deploying to Gitlab's pages
To run the test locally, I use this:
"test-ci": "jest --runInBand webapp/test/ivw --config ./jest.config.js --watchAll=false",
In the terminal, I have the coverage report fine, ...
2
votes
1
answer
620
views
Access and display a gitlab username on a private gitlab pages hosted website
I built a static wiki website hosted by GitLab pages and requires that they log into their gitlab account before accessing the site. It uses Jekyll and some HTML templates to build the site pages from ...
6
votes
1
answer
6k
views
GitLab: How to open private job artifacts directly via browser
i'm running a pipeline in my GitLab project where automated ui tests are executed. After the tests has been finished it will generate a test report where also a .html file is generated to be able to ...
1
vote
0
answers
661
views
Gitlab Pages access with curl or postman
I've created a gitlab page for myself and now want to access the page via a curl or a postman request. Seems that I can but the only way I can do this is by setting the Pages variable to Everyone. The ...
3
votes
1
answer
333
views
Gitlab Pages and cookies
I am thinking about hosting my static website using gitlab pages.
The website is completely static, no dynamic contents (besides me updating it from time to time).
Now I am wondering: Since I am in ...
2
votes
0
answers
95
views
Gitlab Template Plain HTML Not Working After Deployed Pipeline
I’m new to Gitlab, I have created a project name “gitlab-pages-plain-html” from Gitlab template: pages/plain HTML, and the gitlab pipeline to deploy the plain web site to the gitlab pages.
Template ...
2
votes
1
answer
462
views
Flutter web not loading on Gitlab Pages
I managed to build and deploy my project to Gitlab pages, but when I try to access it, it's blank.
Here is the repo: https://gitlab.com/grabtools/content_check
You can see in CI/CD the pipeline ...
3
votes
1
answer
793
views
Why should gitlab pages not be served as a subdomain of external_url
Excerpt from documentation for setting up GitLab Pages with wildcard DNS entry: https://docs.gitlab.com/ee/administration/pages/#wildcard-domains
external_url "http://gitlab.example.com" # ...
0
votes
0
answers
734
views
Gitlab Pages constantly returns status 404 after pipeline succeeds
I'm trying to deploy a simple .html report, which is created after testing, to the Gitlab Pages. Everything is pretty straightforward according to the official documentation however, I'm constantly ...
2
votes
1
answer
966
views
Serve static html pages with Gitlab Pages for each tagged version of a project
I have a code project hosted on a custom gitlab instance. This project is part of a subgroup. We'd like to host static html content, generated by doxygen and similar tools, using Gitlab Pages. Trivial ...
0
votes
1
answer
1k
views
Is it ok to expose API keys in frontend code if the site is behind a login?
I'm trying to develop a simple internal site for home use in React (using Vite). The only users will be members of my household and never anyone else.
For this project I decided to go with GitLab ...
1
vote
1
answer
1k
views
How to publish a plain html web site on GitLab Pages without CI's, runner's, etc?
I want to use GitLab Pages service, but I am unable/not willing to provide my card to enable GitLab CI, which is now restricted. How can I publish a plain html website without using any of this ...
3
votes
0
answers
763
views
Gitlab Changelog API: Writing CHANGELOG that works with GitLab Pages
The GitLab Changelog API amends CHANGELOG.md with commit title and merge request information. However, it does it in a way to only work within GitLab UI (i.e., project-name@long-hash). My use case is ...
4
votes
1
answer
5k
views
How to activate Gitlab Pages Properly?
I am currently setting up gitlab pages for our internal network. Now I have completed my project and the CI pipeline is working. Now I have gone through all the steps in the gitlab.rb configuration ...
4
votes
1
answer
3k
views
Auto deploy mkdocs with versionning using mike on gitlab pages
I'm willing to deploy a new version of the doc each time I commit a tag on gitlab.
I'm using mike for the mkdocs versionning.
I want the versionning to be handle directly on the remote repository not ...
3
votes
1
answer
689
views
I can't connect Gitlab Pages to my Namecheap domain
I've had multiple problems connecting Gitlab pages to my domain registered at Namecheap. I've tried multiple DNS configurations and none of them seem to work. I got "Failed to verify domain ...
0
votes
1
answer
3k
views
Use gitlab/github pages to publish app-ads.txt for Admob [closed]
Admob looks for this file in the root of the pages. The problem with either gitlab or github is that you can create these pages for free, but you end up having a link like this:
https://accountName....
4
votes
0
answers
2k
views
Using Gitlab Pages to trigger another projects pipeline
I am trying to create a form on Gitlab pages (only accessible to Members) and on submit I want to trigger a pipeline of another project which will use all the form values and use it as pipeline ...
3
votes
1
answer
204
views
Using Go Daddy domain with Gitlab pages is causing my resources to be referenced with the wrong path
I've configured the DNS for my Go Daddy domain to link to a gitlab pages URL the resources seem to be looked for at a path using the project name, which I am struggling to understand because the same ...
5
votes
1
answer
10k
views
Link to project's GitLab pages from README
I'd like to insert into the README.md file a link to the project's GitLab pages URL without hardcoding it.
Something like:
Visit the project's [pages site]($PROJECT_NAME_PAGES_URL)
instead of
Visit ...
3
votes
1
answer
883
views
How do I create a root repository for a subgroup?
When I create a group on gitlab, I can create a repo groupname.gitlab.io that is a root folder of the site. And I can create repos such as: css, img and so on, that are subfolders of the site. How do ...
3
votes
1
answer
2k
views
Host all GitLab pages on the same domain
I have a self-hosted GitLab instance (version 14.x).
Recently I have setup GitLab pages. With my current setup (which is the standard setup as far as I can tell), GitLab pages are hosted on:
http[s]://...
2
votes
1
answer
965
views
gitlab-page for sphinx project is not working as expected
The link to the whole project https://gitlab.com/ComplicatedPhenomenon/doubancrawler
I tested the generated document on local machine, it works fine
and gitlab page is as below (https://...
1
vote
1
answer
611
views
GitLab Rest API set GitLab Pages visibility to 'Everyone'
I have a program that allows me to automatically create a new GitLab project with the GitLab API and I would like to be able via this API to set the visibility of Pages to 'Everyone', which defaults ...
5
votes
2
answers
2k
views
How to deploy Blazor WebAssembly as static site in GitLab Pages
I can't find any guide on how to deploy a Blazor web assembly app to GitLab Pages as a static site. Has anyone managed to do so for .NET 6?
I have created a sample web assembly Blazor client ...
2
votes
1
answer
1k
views
How to set up a GitLab Pages staging area (visible without logging in?)
I have a private repo for which I would like to set up a staging area and have it deploy when pushing to dev branch.
This is my .gitlab-ci.yml now
image: alpine:latest
pages:
stage: deploy
script:...
1
vote
1
answer
455
views
Make HTTPS request to a protected GitLab page
How do I make an HTTPS request to a GitLab page protected by OAuth2?
Background: A GL repo assembles draft documentation from multiple development repos and publishes on GitLab Pages. All of this is ...
1
vote
1
answer
1k
views
path problems when deploying angular app in Gitlab pages
I am currently testing an angular app/java microservices backend, and I deployed the front on Gitlab Pages.
The gitlab-ci.yml is pretty simple so far, as I'm just testing the architecture :
cache:
...