From fb001870e379b6d913b119042f2f2cc0c60e0c52 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr>
Date: Tue, 5 May 2020 00:24:24 +0200
Subject: [PATCH] =?UTF-8?q?Pr=C3=A9cise=20quand=20publier=20les=20pages.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Et conserve les tags 5 ans.
---
 .gitlab-ci.yml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b81ffff..12817e0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,10 +21,12 @@
 
 build:
   extends: .the-job
-  rules:
-    - if: $CI_COMMIT_TAG == ''
+  except:
+    - tags
 
 pages:
   extends: .the-job
-  rules:
-    - if: $CI_COMMIT_TAG != ''
+  only:
+    - tags
+  artifacts:
+    expire_in: 5 years
-- 
GitLab