Questions tagged [gitlab-pages]

127 questions
47
votes
5 answers

Deploying GitLab pages for different branches

I am deploying my React app using GitLab Pages, and it works well. Here is my gitlab-ci.yml: # Using the node alpine image to build the React app image: node:alpine # Announce the URL as per CRA docs #…
Juliatzin
  • 18,455
  • 40
  • 166
  • 325
23
votes
2 answers

GitLab CI: How can I reuse installed npm packages between jobs?

I have a GitLab Pages site that uses Gulp for building. My .gitlab-ci.yml file looks similar to this: image: node:latest before_script: - npm install gulp-cli -g - npm install gulp [...and a whole bunch of packages] --save-dev build: stage:…
user341554
  • 569
  • 2
  • 8
  • 16
19
votes
6 answers

Gitlab Pages: Failed to verify domain ownership

This morning I got emails for each of my Gitlab Pages that are hosted on custom domains, saying that the domain verification failed. That's fine, because I don't think I ever verified them in the first place - good on Gitlab for getting this…
Oliver Fawcett
  • 583
  • 1
  • 6
  • 18
15
votes
1 answer

How to publish html report

I am using a GitLab pipeline to run some tests and produce a coverage report. What I would like to do is be able to publish the produced coverage folder (that includes an html page and an src folder) to some internal GitLab static page, viewable by…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
15
votes
3 answers

How do I use PowerShell with Gitlab CI in Gitlab Pages?

How do I use PowerShell commands/scripts with Gitlab CI in a .gitlab-ci.yml file which is used to deploy to gitlab pages? I am trying to execute the build.ps1 file from .gitlab-ci.yml, but when it reaches the build.ps1 line, it gives an error…
Ishan
  • 3,931
  • 11
  • 37
  • 59
14
votes
1 answer

Gitlab custom domain, failed to verify domain ownership

I don't think I need to use the subdomain. I have created a A record and a TXT record as the doc suggests on namecheap.com. After wait for 24 hours, I sill get a failed to verify domain ownership error.
yong ho
  • 3,892
  • 9
  • 40
  • 81
11
votes
1 answer

Is it possible to deploy GItLab Pages without CI/CD?

We have a locally deployed instance of Gitlab, where at the time we cannot afford to have a GitLab Runner to run CI/CD pipelines. Is it possible to use GitLab Pages without CI/CD? E.g. is it possible to manually prepare the HTML-content, put it in…
roskoN
  • 333
  • 4
  • 12
10
votes
1 answer

On Premise Gitlab Pages: How to increase/debug public folder allowed size // ERROR: Uploading artifacts to coordinator... too large archive

I'm creating a big (satis) package repository in a GitLab CI build step and wanted to just host it in GitLab Pages (on premise install). This works flawlessly, until the public folder size gets big, as soon as not only package versions, but…
NextThursday
  • 2,352
  • 3
  • 15
  • 18
9
votes
1 answer

Gitlab Pages and React Router

I will use Gitlab Pages. It seems that Gitlab Pages doesn't work with React Router. I get an empty page. How can I use gitlab Pages with react Router? How can I solve this problem? /src/App.js import React from 'react'; import { Route } from…
Aaron
  • 769
  • 1
  • 14
  • 25
8
votes
2 answers

Creating (HTML/PDF) assets for Hugo site with Gitlab CI

I've created a Gitlab CI job to use pandoc to create some HTML and PDF assets that I would like to deploy to my Hugo site hosted with Gitlab Pages. In .gitlab-ci.yml my job looks like this: # All available Hugo versions are listed here:…
Finn LeSueur
  • 479
  • 5
  • 18
8
votes
1 answer

Gitlab Page Visitor Traffic for Private Repo

When we use this https://github.com/{user}/{repo}/graphs/traffic url in GitHub, a graph of our repo's visitors will be shown. There is also a table which shows the referring sites. Does this feature exists for GitLab Page of a private repo? Or is…
samAlvin
  • 1,648
  • 1
  • 11
  • 35
7
votes
1 answer

hugo serve content inside .well-known folder

Third party application which I'm trying to integrate, asking to put a file inside a .well-known folder. how can I make that file accessible from URL? (example.com/.well-known/token.txt). site is deployed as a gitlab page. every attempt I tried…
Oshan Wisumperuma
  • 1,808
  • 1
  • 18
  • 32
7
votes
2 answers

Is multiple pages job in gitlab CI possible?

I am using gitlab pages to deploy outputs from the jobs. I have 3 different jobs which produce html outputs. One job always runs. 2 other jobs are optional, thus they are manually run. How is possible to deploy outputs of the manual jobs into pages…
Shnkc
  • 2,108
  • 1
  • 27
  • 35
6
votes
1 answer

Can GitLab pages be used for review apps on a mkdocs project?

This answer by @joki to a previous question suggests that it is possible to deploy each active branch in a GitLab repo to a dynamic environment, by giving browsable artifacts a public URL. Trying this out with a mkdocs material project, I've found…
snim2
  • 4,004
  • 27
  • 44
5
votes
0 answers

Gitlab EE - Gitlab Pages setup without wildcard domain

I can't figure out how to setup Gitlab Pages on my self-hosted Gitlab instance without wildcard domains. For example, I have 1 server with 3 public IP addresses and domain names: 10.8.0.10 (git.example.com) - main GitLab instance 10.8.0.11…
1
2 3
8 9