Merge pull request 'Modify drone dependencies.' (#65) from modify-drone-setting into master
Reviewed-on: #65
This commit is contained in:
commit
a05cb40f1e
|
@ -18,11 +18,15 @@ 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
|
||||||
|
@ -43,6 +47,8 @@ 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
|
||||||
|
@ -58,6 +64,8 @@ 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:
|
||||||
|
|
Loading…
Reference in New Issue