Revert `Drone` parallelism settings.

This commit is contained in:
Kazuhiro MUSASHI 2021-09-18 22:45:29 +09:00
parent 5914320bc2
commit aeb6cb9663
1 changed files with 0 additions and 11 deletions

View File

@ -18,23 +18,16 @@ steps:
- find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null - find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null - find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm - find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm
depends_on:
- Modify-Amazon-Links
- name: hugo - name: hugo
image: cibuilds/hugo:0.83.0 image: cibuilds/hugo:0.83.0
commands: commands:
- sudo hugo -e production --minify -v -s . - sudo hugo -e production --minify -v -s .
depends_on:
- Modify-Amazon-Links
- name: Compress-the-Assets - name: Compress-the-Assets
image: alpine:3.9 image: alpine:3.9
commands: commands:
- find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %' - find public/ -type f | egrep "\.(css|js|png|jpg|html|JPG|PNG|CSS|JS|HTML)$" | xargs -n 1 -i% -P 0 sh -c 'cp % %.bk && gzip % && mv %.bk %'
depends_on:
- generate-ogp-images
- hugo
- name: housekeep - name: housekeep
image: appleboy/drone-ssh image: appleboy/drone-ssh
@ -47,8 +40,6 @@ steps:
script: script:
- rm -rf /var/www/blog/* - rm -rf /var/www/blog/*
- rm -rf /home/webadm/works/public/* - rm -rf /home/webadm/works/public/*
depends_on:
- Compress-the-Assets
- name: scp - name: scp
image: appleboy/drone-scp image: appleboy/drone-scp
@ -64,8 +55,6 @@ steps:
from_secret: ssh_key from_secret: ssh_key
overwrite: true overwrite: true
strip_components: 1 strip_components: 1
depends_on:
- housekeep
trigger: trigger:
branch: branch: