Skip to content

Commit 5e77253

Browse files
committed
CI: Add Gitlab CI for CERN GitLab Pages deployment
Enable hosting the Rucio documentation on CERN GitLab Pages while keeping all builds on GitHub Actions. - GitHub Actions builds the site and pushes to gh-pages branch - CERN GitLab mirrors gh-pages via pull mirroring - GitLab CI copies pre-built files to public/ for Pages deployment Refs: #704
1 parent 514f6e7 commit 5e77253

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.gitlab-ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# GitLab CI configuration for CERN GitLab Pages
2+
# ==============================================
3+
# Build happens on GitHub Actions, this only deploys pre-built artifacts through CERN's gitlab instance.
4+
#
5+
# How it works:
6+
# 1. GitHub Actions builds the Docusaurus site and pushes to gh-pages branch
7+
# 2. CERN GitLab pulls/mirrors the gh-pages branch
8+
# 3. This CI pipeline deploys the pre-built files to GitLab Pages
9+
#
10+
11+
image: alpine:latest
12+
13+
pages:
14+
stage: deploy
15+
script:
16+
# GitLab Pages expects files in a 'public' directory
17+
- mkdir -p public
18+
- cp -r * public/ 2>/dev/null || true
19+
artifacts:
20+
paths:
21+
- public
22+
rules:
23+
- if: $CI_COMMIT_BRANCH == "gh-pages"

0 commit comments

Comments
 (0)