From b7633a5d73f7a0f8c4336409532b77bb7310fa80 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr>
Date: Thu, 25 Feb 2021 17:19:40 +0100
Subject: [PATCH] =?UTF-8?q?ci:=20ajoute=20un=20job=20pour=20regrouper=20to?=
 =?UTF-8?q?us=20les=20fichiers=20g=C3=A9n=C3=A9r=C3=A9s.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .gitlab-ci.yml | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 237a2b4..79e12b4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,15 @@
-.job:
-    image: ${DISTRO}:${CODENAME}
+defaults:
     tags: [docker]
     retry: 2
     interruptible: true
+
+stages:
+    - build
+    - reduce
+
+.job:
+    image: ${DISTRO}:${CODENAME}
+    stage: build
     variables:
         LANG: C
         DEBIAN_FRONTEND: noninteractive
@@ -40,3 +47,16 @@ ubuntu:
         - gpg --keyserver keyserver.ubuntu.com --recv-keys 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C
         - gpg --export 14AA40EC0831756756D7F66C4F4EA0AAE5267A6C | apt-key add -
         - echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu $CODENAME main" > /etc/apt/sources.list.d/php.list
+
+archive:
+    image: busybox
+    stage: reduce
+    needs:
+        - debian
+        - ubuntu
+    script:
+        - ls public/
+    artifacts:
+        name: php_packages
+        paths:
+            - public/
-- 
GitLab