CI: Ajout d'une task pour désindexer le site si c'est un déploiement en preprod
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Pour éviter que les moteurs de recherche flag du duplicate content parce qu'on a plusieurs sites identiques en ligne
This commit is contained in:
parent
8619254c73
commit
9a230c545d
1 changed files with 8 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue