Add working_directory:
```
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -16,21 +16,25 @@ jobs:
- run:
name: Change Amazon Links
+ working_directory: /root/project/
command: |
grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"
- run:
name: "Run Hugo"
+ working_directory: /root/project/
command: HUGO_ENV=production hugo -v -s /root/project/
- run:
name: Change Amazon Links
+ working_directory: /root/project/
command: |
grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
- run:
name: "Gzip css/js/images"
+ working_directory: /root/project/
command: |
TARGETS=`find ./public/ -type f -regextype posix-egrep -regex ".*\.(css|js|png|jpg|JPG|PNG|CSS|JS)"
for TARGET in `find ./public/ -type f -regextype posix-egrep -regex ".*\.(css|js|png|jpg|JPG|PNG|CSS|JS)"`
```
This commit is contained in:
parent
eaef25c364
commit
4f6f71f2f8
@ -16,21 +16,25 @@ jobs:
|
|||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Change Amazon Links
|
name: Change Amazon Links
|
||||||
|
working_directory: /root/project/
|
||||||
command: |
|
command: |
|
||||||
grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
|
grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
|
||||||
grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"
|
grep -l -r "http://www.amazon.co.jp/exec" content/ | sort | uniq | xargs -t --no-run-if-empty sed -i -e "s/http:\/\/www.amazon.co.jp\/exec/https:\/\/www.amazon.co.jp\/exec/g"
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "Run Hugo"
|
name: "Run Hugo"
|
||||||
|
working_directory: /root/project/
|
||||||
command: HUGO_ENV=production hugo -v -s /root/project/
|
command: HUGO_ENV=production hugo -v -s /root/project/
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Change Amazon Links
|
name: Change Amazon Links
|
||||||
|
working_directory: /root/project/
|
||||||
command: |
|
command: |
|
||||||
grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
|
grep -l -r ecx.images-amazon.com content/ | sort | uniq | xargs -t --no-run-if-empty sed -ie "s/http:\/\/ecx.images-amazon.com/https:\/\/images-na.ssl-images-amazon.com/g"
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: "Gzip css/js/images"
|
name: "Gzip css/js/images"
|
||||||
|
working_directory: /root/project/
|
||||||
command: |
|
command: |
|
||||||
TARGETS=`find ./public/ -type f -regextype posix-egrep -regex ".*\.(css|js|png|jpg|JPG|PNG|CSS|JS)"
|
TARGETS=`find ./public/ -type f -regextype posix-egrep -regex ".*\.(css|js|png|jpg|JPG|PNG|CSS|JS)"
|
||||||
for TARGET in `find ./public/ -type f -regextype posix-egrep -regex ".*\.(css|js|png|jpg|JPG|PNG|CSS|JS)"`
|
for TARGET in `find ./public/ -type f -regextype posix-egrep -regex ".*\.(css|js|png|jpg|JPG|PNG|CSS|JS)"`
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user