factorise when
This commit is contained in:
parent
c17cc7d4d4
commit
9493de35bb
1 changed files with 2 additions and 4 deletions
|
@ -3,6 +3,8 @@ when:
|
||||||
event:
|
event:
|
||||||
- push
|
- push
|
||||||
- pull_request
|
- pull_request
|
||||||
|
branch: preprod
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: HTML syntax check
|
- name: HTML syntax check
|
||||||
|
@ -18,15 +20,11 @@ steps:
|
||||||
- tidy -q -e --drop-empty-elements no static/index.html
|
- tidy -q -e --drop-empty-elements no static/index.html
|
||||||
|
|
||||||
- name: disable SEO indexing (on preprod only)
|
- 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
|
image: debian:12 # Same as previous step to not have to download 2 images, but it could be any linux
|
||||||
commands:
|
commands:
|
||||||
- '[ -f static/robots.txt ] && echo "Disallow: /*" >> static/robots.txt'
|
- '[ -f static/robots.txt ] && echo "Disallow: /*" >> static/robots.txt'
|
||||||
|
|
||||||
- name: upload (preprod)
|
- name: upload (preprod)
|
||||||
when:
|
|
||||||
branch: preprod
|
|
||||||
image: plugins/s3
|
image: plugins/s3
|
||||||
settings:
|
settings:
|
||||||
bucket: preprod-site
|
bucket: preprod-site
|
||||||
|
|
Loading…
Reference in a new issue