diff options
author | Tixie <contact@tixie.name> | 2024-06-07 19:03:09 +0200 |
---|---|---|
committer | Tixie <tixie@noreply.localhost> | 2024-06-09 16:21:27 +0000 |
commit | a007d29a9f95f23f66e75b6c108963e669bf3376 (patch) | |
tree | 881ab1c5eee283fd77846705d7bc3bc97e8efadd | |
parent | fd276e5dc27f02fe7cba53f3cb931f8a540c881c (diff) | |
download | site-a007d29a9f95f23f66e75b6c108963e669bf3376.tar.gz site-a007d29a9f95f23f66e75b6c108963e669bf3376.zip |
CI: Ajout d'une task pour désindexer le site si c'est un déploiement en preprod
Pour éviter que les moteurs de recherche flag du duplicate content parce qu'on a plusieurs sites identiques en ligne
-rw-r--r-- | .woodpecker.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
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] |