Modify commands to make them 1 lines.
This commit is contained in:
parent
6cb4e1deac
commit
5be9d541ab
13
.drone.yml
13
.drone.yml
|
@ -12,19 +12,12 @@ steps:
|
||||||
- name: hugo
|
- name: hugo
|
||||||
image: cibuilds/hugo:0.62.1
|
image: cibuilds/hugo:0.62.1
|
||||||
commands:
|
commands:
|
||||||
- if [ "${DRONE_BRANCH}" != "master" ]; then \
|
- if [ "${DRONE_BRANCH}" != "master" ]; then hugo -e staging -v -s; else hugo -e production -v -s; fi
|
||||||
hugo -e staging -v -s \
|
|
||||||
else \
|
|
||||||
hugo -e production -v -s \
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Compress-the-Assets
|
- name: Compress-the-Assets
|
||||||
image: cibuilds/hugo:0.62.1
|
image: cibuilds/hugo:0.62.1
|
||||||
commands: >
|
commands:
|
||||||
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"` \
|
for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do gzip -c ${TARGET} > ${TARGET}.gz; done
|
||||||
do \
|
|
||||||
gzip -c ${TARGET} > ${TARGET}.gz \
|
|
||||||
done
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
|
Loading…
Reference in New Issue