Kazuhiro MUSASHI
|
8884abc894
|
Bump `hugo` version to `v0.101.0`.
|
2022-08-20 21:48:49 +09:00 |
Kazuhiro MUSASHI
|
f7ac62ea3e
|
Use the latest version of the docker image:
```
--- a/.drone.yml
+++ b/.drone.yml
@@ -10,7 +10,7 @@ steps:
- 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"
- name: generate-ogp-images
- image: reg.kazu634.com/kazu634/tcardgen:v0.3
+ image: reg.kazu634.com/kazu634/tcardgen
commands:
- find /root -type f -name *.ttf | xargs -t -I% -n 1 cp -p % assets/font/
- find content/ -type f -name '*.md' | grep -v '_index' | xargs -t -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null
```
|
2022-08-20 21:13:33 +09:00 |
Kazuhiro MUSASHI
|
1cb279fd2a
|
Copy the fonts to `assets/font`:
```
--- a/.drone.yml
+++ b/.drone.yml
@@ -12,7 +12,7 @@ steps:
- name: generate-ogp-images
image: reg.kazu634.com/kazu634/tcardgen:v0.3
commands:
- - find /var/tmp/ -type f -name *.ttf | xargs -t -I% -n 1 cp -p % assets/font/
+ - find /root -type f -name *.ttf | xargs -t -I% -n 1 cp -p % assets/font/
- find content/ -type f -name '*.md' | grep -v '_index' | xargs -t -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm
```
|
2022-08-20 21:03:09 +09:00 |
Kazuhiro MUSASHI
|
031136b8c7
|
Add `-t` option to `find` command:
```
--- a/.drone.yml
+++ b/.drone.yml
@@ -12,7 +12,7 @@ steps:
- name: generate-ogp-images
image: reg.kazu634.com/kazu634/tcardgen:v0.3
commands:
- - find /var/tmp/ -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/font/
+ - find /var/tmp/ -type f -name *.ttf | xargs -t -I% -n 1 cp -p % assets/font/
- find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm
```
|
2022-08-20 06:15:01 +00:00 |
Kazuhiro MUSASHI
|
3a58c81fbe
|
Modify CI setting.
```
--- a/.drone.yml
+++ b/.drone.yml
@@ -12,9 +12,7 @@ steps:
- name: generate-ogp-images
image: reg.kazu634.com/kazu634/tcardgen:v0.3
commands:
- - wget 'https://github.com/yuru7/HackGen/releases/download/v2.3.0/HackGenNerd_v2.3.0.zip' -O /tmp/font.zip
- - unzip /tmp/font.zip -d /tmp/font
- - find /tmp/font -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/font/
+ - find /var/tmp/ -type f -name *.ttf | xargs -I% -n 1 cp -p % assets/font/
- find content/ -type f -name '*.md' | grep -v '_index' | xargs -n 1 /usr/local/bin/tcardgen -f assets/font/ -o static/ogp/ -c assets/tcardgen.yaml > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs -n 1 -I% basename % .png | xargs -I% -n 1 img2webp -lossy -q 50 static/ogp/%.png -o static/ogp/%.webp > /dev/null
- find static/ogp/ -type f -name '*.png' | xargs --no-run-if-empty rm
```
|
2022-08-20 15:02:36 +09:00 |
Kazuhiro MUSASHI
|
5b9e94c192
|
Execute `git submodule`.
|
2021-11-14 22:35:27 +09:00 |
Kazuhiro MUSASHI
|
bac3b5e632
|
Use `hugo` version 0.89.2.
|
2021-11-14 22:35:27 +09:00 |
Kazuhiro MUSASHI
|
aeb6cb9663
|
Revert `Drone` parallelism settings.
|
2021-09-18 22:45:33 +09:00 |
Kazuhiro MUSASHI
|
05a13e56c5
|
Modify drone dependencies.
|
2021-09-18 13:55:18 +09:00 |
Kazuhiro MUSASHI
|
d0312f278d
|
Support `Drone` parallelism.
|
2021-09-18 13:35:21 +09:00 |
Kazuhiro MUSASHI
|
0c702aa60b
|
Move to production.
|
2021-05-06 22:48:36 +09:00 |
Kazuhiro MUSASHI
|
5b6c282a77
|
Add .png extention.
|
2021-05-06 22:42:01 +09:00 |
Kazuhiro MUSASHI
|
73d6002589
|
Modify the logic to rename.
|
2021-05-06 22:38:16 +09:00 |
Kazuhiro MUSASHI
|
1302102189
|
Modify the logic to rename.
|
2021-05-06 22:31:15 +09:00 |
Kazuhiro MUSASHI
|
968286ea07
|
Modify the logic to rename.
|
2021-05-06 22:21:34 +09:00 |
Kazuhiro MUSASHI
|
3ae92074b3
|
Modify the logic to rename.
|
2021-05-06 22:14:49 +09:00 |
Kazuhiro MUSASHI
|
f0c398341b
|
Try and error.
|
2021-05-06 21:51:18 +09:00 |
Kazuhiro MUSASHI
|
536d9d85a6
|
Do not housekeep, because no need to housekeep.
|
2021-05-06 21:45:17 +09:00 |
Kazuhiro MUSASHI
|
af8d0be7bb
|
Show the standard errors.
|
2021-05-06 21:43:51 +09:00 |
Kazuhiro MUSASHI
|
cfe3b63a61
|
Modify the logic to rename.
|
2021-05-06 21:30:38 +09:00 |
Kazuhiro MUSASHI
|
bfc5959438
|
Test the CI to generate OGP.
|
2021-05-06 21:20:32 +09:00 |
Kazuhiro MUSASHI
|
9ac988942e
|
Generate OGP images only for production.
|
2021-05-02 16:07:55 +09:00 |
Kazuhiro MUSASHI
|
9047181649
|
15th try.
|
2021-05-02 16:02:10 +09:00 |
Kazuhiro MUSASHI
|
4d6b07f5e7
|
14th try.
|
2021-05-02 15:56:51 +09:00 |
Kazuhiro MUSASHI
|
bce4c912d9
|
13th try.
|
2021-05-02 15:52:21 +09:00 |
Kazuhiro MUSASHI
|
7103a07f66
|
12th try.
|
2021-05-02 15:49:30 +09:00 |
Kazuhiro MUSASHI
|
e01adfc1fe
|
11th try.
|
2021-05-02 15:30:27 +09:00 |
Kazuhiro MUSASHI
|
afc2966e92
|
10th try.
|
2021-05-02 15:19:56 +09:00 |
Kazuhiro MUSASHI
|
a4ed83d0bd
|
9th try.
|
2021-05-02 15:10:46 +09:00 |
Kazuhiro MUSASHI
|
5afca5e21d
|
8th try.
|
2021-05-02 15:07:00 +09:00 |
Kazuhiro MUSASHI
|
2c018f2642
|
7th try.
|
2021-05-02 15:01:24 +09:00 |
Kazuhiro MUSASHI
|
42ad3a56d7
|
6th try
|
2021-05-02 14:58:39 +09:00 |
Kazuhiro MUSASHI
|
ff1b09174e
|
5th try
|
2021-05-02 14:54:22 +09:00 |
Kazuhiro MUSASHI
|
979bfe85a3
|
4th try.
|
2021-05-02 14:50:30 +09:00 |
Kazuhiro MUSASHI
|
3218626637
|
3rd try.
|
2021-05-02 14:38:37 +09:00 |
Kazuhiro MUSASHI
|
cda1fde1ff
|
2nd try to generate the OGP images.
|
2021-05-02 14:37:28 +09:00 |
Kazuhiro MUSASHI
|
ca392fa478
|
Initial try to generate OGP image by Drone.
|
2021-05-02 14:36:22 +09:00 |
Kazuhiro MUSASHI
|
1febb9fff9
|
Bump `hugo` version.
|
2021-05-02 13:55:50 +09:00 |
Kazuhiro MUSASHI
|
ecea27cf51
|
Omit `-t` option.
|
2020-05-01 00:57:54 +09:00 |
Kazuhiro MUSASHI
|
30310d143a
|
Use `xargs`, instead of `for`.
|
2020-05-01 00:43:05 +09:00 |
Kazuhiro MUSASHI
|
3478c90104
|
gzip `.html` during ci processes.
|
2020-05-01 00:09:59 +09:00 |
Kazuhiro MUSASHI
|
20d9abf624
|
Modify `--minify` option order.
|
2020-04-18 23:12:16 +08:00 |
Kazuhiro MUSASHI
|
bdec22a19a
|
Add `--minify` option to `.drone.yml`.
|
2020-04-18 23:05:57 +08:00 |
Kazuhiro MUSASHI
|
f97582225b
|
Support hugo version 0.69.
|
2020-04-18 17:33:23 +08:00 |
Kazuhiro MUSASHI
|
f349d21677
|
Modify production part as well.
|
2020-02-16 23:09:14 +08:00 |
Kazuhiro MUSASHI
|
3e1b3d2f3f
|
Delete `sudo` command.
|
2020-02-16 23:01:49 +08:00 |
Kazuhiro MUSASHI
|
9ed38ea0b8
|
Use `alpine:3.9` docker image.
|
2020-02-16 22:57:11 +08:00 |
Kazuhiro MUSASHI
|
5f42d93271
|
Add `sudo` to all the lines
|
2020-02-16 20:38:15 +07:00 |
Kazuhiro MUSASHI
|
26a55c7c81
|
Add `sudo` again
|
2020-02-16 20:35:24 +07:00 |
Kazuhiro MUSASHI
|
6cb3aae739
|
hugo docker check: specify cache directory again
|
2020-02-16 20:33:45 +07:00 |