From 04e1c76110f198cb02ad683c4e3af877efa76cc9 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Tue, 1 Jul 2025 17:24:03 +0200 Subject: [PATCH] CI: Do not store .git directory in artifacts gitlab-runner warns about that: > Uploading artifacts... > WARNING: Part of .git directory is on the list of files to archive > WARNING: This may introduce unexpected problems --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d6e39f69e..94cf7b7be 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -155,6 +155,9 @@ fedora image: when: "always" paths: - "*" + exclude: + - ".git*" + - ".git/**/*" fedora build shared: extends: @@ -397,6 +400,9 @@ vs2019 shared amd64: artifacts: paths: - "*" + exclude: + - ".git*" + - ".git/**/*" vs2019 static amd64: extends: '.build windows'