Merge pull request 'Revert `Drone` parallelism settings.' (#68) from revert-drone-parallelism into master

Reviewed-on: #68
This commit is contained in:
Kazuhiro MUSASHI 2021-09-18 22:48:45 +09:00
commit 5d3b3a30c0
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 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
depends_on:
- Modify-Amazon-Links
- name: hugo
image: cibuilds/hugo:0.83.0
commands:
- sudo hugo -e production --minify -v -s .
depends_on:
- Modify-Amazon-Links
- name: Compress-the-Assets
image: alpine:3.9
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 %'
depends_on:
- generate-ogp-images
- hugo
- name: housekeep
image: appleboy/drone-ssh
@ -47,8 +40,6 @@ steps:
script:
- rm -rf /var/www/blog/*
- rm -rf /home/webadm/works/public/*
depends_on:
- Compress-the-Assets
- name: scp
image: appleboy/drone-scp
@ -64,8 +55,6 @@ steps:
from_secret: ssh_key
overwrite: true
strip_components: 1
depends_on:
- housekeep
trigger:
branch: