From 9a230c545dfde7e2253558f18a1811931001b258 Mon Sep 17 00:00:00 2001 From: Tixie Date: Fri, 7 Jun 2024 19:03:09 +0200 Subject: =?UTF-8?q?CI:=20Ajout=20d'une=20task=20pour=20d=C3=A9sindexer=20l?= =?UTF-8?q?e=20site=20si=20c'est=20un=20d=C3=A9ploiement=20en=20preprod?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pour éviter que les moteurs de recherche flag du duplicate content parce qu'on a plusieurs sites identiques en ligne --- .woodpecker.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index d1d955b..76c1c0e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -11,6 +11,14 @@ steps: - DEBIAN_FRONTEND=noninteractive apt install -qq -y ./tidy-5.8.0-Linux-64bit.deb - tidy -q -e static/index.html + - name: disable SEO indexing (on preprod only) + when: + event: [push, pull_request] + branch: preprod + image: debian:12 # Same as previous step to not have to download 2 images, but it could be any linux + commands: + - '[ -f static/robots.txt ] && echo "Disallow: /*" >> static/robots.txt' + - name: upload (preprod) when: event: [push, pull_request] -- cgit v1.2.3