Modify YAML syntax.
This commit is contained in:
parent
464f579b62
commit
6cb4e1deac
16
.drone.yml
16
.drone.yml
|
@ -11,19 +11,19 @@ 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
|
hugo -e staging -v -s \
|
||||||
else
|
else \
|
||||||
hugo -e production -v -s
|
hugo -e production -v -s \
|
||||||
fi
|
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
|
do \
|
||||||
gzip -c ${TARGET} > ${TARGET}.gz
|
gzip -c ${TARGET} > ${TARGET}.gz \
|
||||||
done
|
done
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
|
Loading…
Reference in New Issue