Add `sudo` to all the lines
This commit is contained in:
parent
26a55c7c81
commit
5f42d93271
|
@ -70,11 +70,10 @@ steps:
|
|||
- sudo hugo -e staging -v -s .
|
||||
|
||||
- name: Compress-the-Assets
|
||||
user: root
|
||||
image: cibuilds/hugo:0.64.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
|
||||
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do rm -f ${TARGET}; done
|
||||
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do sudo gzip -c ${TARGET} > ${TARGET}.gz; done
|
||||
- for TARGET in `find public/ -type f | egrep "\.(css|js|png|jpg|JPG|PNG|CSS|JS)$"`; do sudo rm -f ${TARGET}; done
|
||||
|
||||
- name: housekeep
|
||||
image: appleboy/drone-ssh
|
||||
|
|
Loading…
Reference in New Issue