Newer
Older
- output/ # le répertoire où se trouve le HTML statique généré
- apt-get install -y --force-yes build-essential python-dev python-pip git nodejs nodejs-legacy npm
- pip install -r requirements.txt
- 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
- 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
- sed 's/\([0-9A-F]\{2\}\)/\\\\\\x\1/gI' my.keytab.hex | xargs printf > my.keytab
- ssh -K vimazeno@perso.local.isima.fr "mkdir -p ~/public_html/"
- ssh -K vimazeno@perso.local.isima.fr "echo 'Options +FollowSymLinks' > ~/public_html/.htaccess"
- ssh -K vimazeno@perso.local.isima.fr "echo 'RewriteEngine on' >> ~/public_html/.htaccess"
- ssh -K vimazeno@perso.local.isima.fr "echo 'RewriteCond %{HTTP_HOST} ^perso.isima.fr$' >> ~/public_html/.htaccess"
- ssh -K vimazeno@perso.local.isima.fr "echo 'RewriteRule (.*) https://perso.limos.fr%{REQUEST_URI} [R=301,L]' >> ~/public_html/.htaccess"
- rsync -az --exclude '_' -e "ssh -K" output/ vimazeno@perso.local.isima.fr:~/public_html/
# le déploiement se fera uniquement lorsque je clique sur le "play" de la CI via l'interface gitlab