From a007d29a9f95f23f66e75b6c108963e669bf3376 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 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] -- cgit v1.2.3