Get the latest tech news

Hosting Static Content with Gitlab


Steps to host static content on GitLab: 1. create public repo, 2. Store your content under public, 3. Configure URL in Pages menu, 4. Configure CI.

Therefore, add your content to the public directory, commit, and push in Git as usual: Once you push to your Git repository a job will be started governed by above.gitlab-ci.yml and produces the intended website. I use below command to generate all my static HTML pages with/p as prefix, or "relative base":

Get the Android app

Or read this on Hacker News

Read more on:

Photo of GitLab

GitLab

Photo of Static Content

Static Content

Related news:

News photo

GitLab: Critical bug lets attackers run pipelines as other users

News photo

High-severity GitLab flaw lets attackers take over accounts

News photo

Maximum-severity GitLab flaw allowing account hijacking under active exploitation | The threat is potentially grave because it could be used in supply-chain attacks