diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index db0dabea7ca7a1b51cd2ca3356e9cb3b32259184..d56b9c999e285d6d174115da3fce3afce2a948de 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,15 +1,19 @@
-# This file is a template, and might need editing before it works on your project.
-# Full project: https://gitlab.com/pages/plain-html
+# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry
+# image: forge.univ-lyon1.fr:4567/emmanuel.coquery/emmanuel.coquery.pages.univ-lyon1.fr/hugo:latest
+image: harbor.pagoda.os.univ-lyon1.fr/ecoquery-hugo/hugo:latest
+
+variables:
+  GIT_SUBMODULE_STRATEGY: recursive
+
+test:
+  script:
+    - hugo
+  except:
+    - master
+
 pages:
-  stage: deploy
   script:
-      - apt -y update && apt -y install python3-pip
-      - pip3 install mkdocs
-      - cd site-web
-      - export LC_ALL=C.UTF-8
-      - export LANG=C.UTF-8
-      - mkdocs build
-      - mv site ../public
+    - hugo
   artifacts:
     paths:
       - public