Modify commands to make them 1 lines.

This commit is contained in:
Kazuhiro MUSASHI 2020-01-05 20:51:36 +08:00
parent 6cb4e1deac
commit 5be9d541ab
1 changed files with 3 additions and 10 deletions

View File

@ -12,19 +12,12 @@ steps:
- name: hugo
image: cibuilds/hugo:0.62.1
commands:
- if [ "${DRONE_BRANCH}" != "master" ]; then \
hugo -e staging -v -s \
else \
hugo -e production -v -s \
fi
- if [ "${DRONE_BRANCH}" != "master" ]; then hugo -e staging -v -s; else hugo -e production -v -s; fi
- name: Compress-the-Assets
image: cibuilds/hugo:0.62.1
commands: >
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"` \
do \
gzip -c ${TARGET} > ${TARGET}.gz \
done
commands:
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done
trigger:
event: