From 41ff9ac00f5ff824870f12fccb202227502c0046 Mon Sep 17 00:00:00 2001
From: Vincent Mazenod <vmazenod@gmail.com>
Date: Thu, 28 Jul 2022 18:11:32 +0200
Subject: [PATCH] update gitlab ci

---
 .gitlab-ci.yml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 98b1b61..adf6782 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -7,10 +7,25 @@ cache:
 build:
   stage: build
   script:
-    - apt update
+    # dépendances pelican thèmes
     - apt-get install -y --force-yes build-essential python-dev python-pip git nodejs nodejs-legacy npm
     - pip install --upgrade pip==9.0.3
     - pip install -r requirements.txt
+    - cd content && npm install && cd ..
+    - sed -i "s/RELATIVE_URLS = True/RELATIVE_URLS = False/" pelicanconf.py
+    - apt-get install -y --force-yes locales
+    - locale-gen fr_FR
+    - locale-gen fr_FR.UTF-8
+    - update-locale LANG=fr_FR.UTF-8
+    - . /etc/default/locale
+    - apt-get install -y --force-yes rsync
+    - apt-get install -y --force-yes krb5-user krb5-config
+    # génération du HTML statique dans le répertoire output
+    - pelican content
+    # dépendance pour l'authentification kerberos
+    - echo -e "krb5-config krb5-config/default_realm string LOCAL.ISIMA.FR" | debconf-set-selections
+    - apt-get install -y --force-yes krb5-user krb5-config
+    # récupération du KEYTAB en hexa
     # récupération du KEYTAB en hexa 
     - echo "$KEYTAB" > my.keytab.hex
     # conversion du KEYTAB en hexa en binaire
-- 
GitLab