fix yaml de la task pour désindexer le site si c'est un déploiement en preprod
Some checks failed
ci/woodpecker/pr/woodpecker Pipeline was successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pull_request_closed/woodpecker Pipeline failed

This commit is contained in:
Tixie Salander 2024-06-09 18:01:47 +02:00 committed by Tixie
parent b75294cc96
commit 4978b26ef6

View file

@ -19,14 +19,6 @@ 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]