From 784bd9200930ea64072dce0bfb65d57a10ec7db5 Mon Sep 17 00:00:00 2001 From: Christophe Chaudier Date: Wed, 17 Sep 2025 08:58:06 +0200 Subject: [PATCH 1/2] fix(ci): chang only (deprecated) for rules Source : https://docs.gitlab.com/ci/yaml/deprecated_keywords/#only--except --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be56731..2075f55 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,5 +12,5 @@ pages: artifacts: paths: - public - only: - - main \ No newline at end of file + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH -- GitLab From b07629a031c50e4f4860f71104670537aa73908d Mon Sep 17 00:00:00 2001 From: Christophe Chaudier Date: Wed, 17 Sep 2025 09:30:24 +0200 Subject: [PATCH 2/2] ci: improved performance with a lighter image 987MB vs 29.84MB --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2075f55..e15dc74 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ stages: pages: stage: deploy - image: ruby:3.1 + image: debian:13-slim script: - echo "📋 Copying root files to public/ for GitLab Pages..." - mkdir -p public -- GitLab