aboutsummaryrefslogtreecommitdiff
path: root/.woodpecker/preprod.yaml
diff options
context:
space:
mode:
authorAeddis <aeddis@deuxfleurs.fr>2024-12-10 22:41:45 +0100
committerAeddis <aeddis@deuxfleurs.fr>2024-12-10 22:41:45 +0100
commit9493de35bb955571fbae642f9cd3775575145741 (patch)
treed307e410c7cc29d6dc28075dd2a48d6af0ded116 /.woodpecker/preprod.yaml
parentc17cc7d4d4cbdec40654e72ee55e299863bf61f3 (diff)
downloadsite-preprod.tar.gz
site-preprod.zip
factorise whenpreprod
Diffstat (limited to '.woodpecker/preprod.yaml')
-rw-r--r--.woodpecker/preprod.yaml6
1 files changed, 2 insertions, 4 deletions
diff --git a/.woodpecker/preprod.yaml b/.woodpecker/preprod.yaml
index cbf3ab3..92b0c05 100644
--- a/.woodpecker/preprod.yaml
+++ b/.woodpecker/preprod.yaml
@@ -3,6 +3,8 @@ when:
event:
- push
- pull_request
+ branch: preprod
+
steps:
- name: HTML syntax check
@@ -18,15 +20,11 @@ steps:
- tidy -q -e --drop-empty-elements no static/index.html
- name: disable SEO indexing (on preprod only)
- when:
- 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:
- branch: preprod
image: plugins/s3
settings:
bucket: preprod-site