Commit Graph

87 Commits

Author SHA1 Message Date
741ca46070 Change the destination IP address.
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-08 20:30:37 +09:00
aedb001b1f Modify .drone.yml. 2024-01-21 19:55:43 +09:00
b982ac29b7 Bump hugo version. 2023-07-29 23:03:59 +09:00
902a141fd6 Bump hugo version to 0.106. 2022-11-23 14:55:42 +09:00
8884abc894 Bump hugo version to v0.101.0. 2022-08-20 21:48:49 +09:00
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
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
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
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
5b9e94c192 Execute git submodule. 2021-11-14 22:35:27 +09:00
bac3b5e632 Use hugo version 0.89.2. 2021-11-14 22:35:27 +09:00
aeb6cb9663 Revert Drone parallelism settings. 2021-09-18 22:45:33 +09:00
05a13e56c5 Modify drone dependencies. 2021-09-18 13:55:18 +09:00
d0312f278d Support Drone parallelism. 2021-09-18 13:35:21 +09:00
0c702aa60b Move to production. 2021-05-06 22:48:36 +09:00
5b6c282a77 Add .png extention. 2021-05-06 22:42:01 +09:00
73d6002589 Modify the logic to rename. 2021-05-06 22:38:16 +09:00
1302102189 Modify the logic to rename. 2021-05-06 22:31:15 +09:00
968286ea07 Modify the logic to rename. 2021-05-06 22:21:34 +09:00
3ae92074b3 Modify the logic to rename. 2021-05-06 22:14:49 +09:00
f0c398341b Try and error. 2021-05-06 21:51:18 +09:00
536d9d85a6 Do not housekeep, because no need to housekeep. 2021-05-06 21:45:17 +09:00
af8d0be7bb Show the standard errors. 2021-05-06 21:43:51 +09:00
cfe3b63a61 Modify the logic to rename. 2021-05-06 21:30:38 +09:00
bfc5959438 Test the CI to generate OGP. 2021-05-06 21:20:32 +09:00
9ac988942e Generate OGP images only for production. 2021-05-02 16:07:55 +09:00
9047181649 15th try. 2021-05-02 16:02:10 +09:00
4d6b07f5e7 14th try. 2021-05-02 15:56:51 +09:00
bce4c912d9 13th try. 2021-05-02 15:52:21 +09:00
7103a07f66 12th try. 2021-05-02 15:49:30 +09:00
e01adfc1fe 11th try. 2021-05-02 15:30:27 +09:00
afc2966e92 10th try. 2021-05-02 15:19:56 +09:00
a4ed83d0bd 9th try. 2021-05-02 15:10:46 +09:00
5afca5e21d 8th try. 2021-05-02 15:07:00 +09:00
2c018f2642 7th try. 2021-05-02 15:01:24 +09:00
42ad3a56d7 6th try 2021-05-02 14:58:39 +09:00
ff1b09174e 5th try 2021-05-02 14:54:22 +09:00
979bfe85a3 4th try. 2021-05-02 14:50:30 +09:00
3218626637 3rd try. 2021-05-02 14:38:37 +09:00
cda1fde1ff 2nd try to generate the OGP images. 2021-05-02 14:37:28 +09:00
ca392fa478 Initial try to generate OGP image by Drone. 2021-05-02 14:36:22 +09:00
1febb9fff9 Bump hugo version. 2021-05-02 13:55:50 +09:00
ecea27cf51 Omit -t option. 2020-05-01 00:57:54 +09:00
30310d143a Use xargs, instead of for. 2020-05-01 00:43:05 +09:00
3478c90104 gzip .html during ci processes. 2020-05-01 00:09:59 +09:00
20d9abf624 Modify --minify option order. 2020-04-18 23:12:16 +08:00
bdec22a19a Add --minify option to .drone.yml. 2020-04-18 23:05:57 +08:00
f97582225b Support hugo version 0.69. 2020-04-18 17:33:23 +08:00
f349d21677 Modify production part as well. 2020-02-16 23:09:14 +08:00
3e1b3d2f3f Delete sudo command. 2020-02-16 23:01:49 +08:00