diff options
-rw-r--r-- | .woodpecker.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.woodpecker.yaml b/.woodpecker.yaml index d1d955b..76c1c0e 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -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] |