From 084029aa75a1172833aa8a21a45d294a20978e92 Mon Sep 17 00:00:00 2001 From: Tixie Date: Fri, 7 Jun 2024 19:03:09 +0200 Subject: [PATCH] =?UTF-8?q?CI:=20Ajout=20d'une=20task=20pour=20d=C3=A9sind?= =?UTF-8?q?exer=20le=20site=20si=20c'est=20un=20d=C3=A9ploiement=20en=20pr?= =?UTF-8?q?eprod?= 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 1a962d9..dce8056 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -19,6 +19,14 @@ steps: commands: - '[ -f static/robots.txt ] && echo "Disallow: /*" >> static/robots.txt' + - 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]