File tree Expand file tree Collapse file tree 4 files changed +23
-16
lines changed
Expand file tree Collapse file tree 4 files changed +23
-16
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ Discord (など) で定期実行などされるBotのmonorepo。
1111
1212詳細は ./rollcron.yaml で。
1313
14+ ## 開発環境
15+
16+ [ mise] ( https://mise.jdx.dev/ ) でツール管理。` mise.toml ` 参照。
17+
18+ ``` bash
19+ mise doctor # "activated: yes" を確認
20+ mise install # ツールをインストール (初回 or mise.toml 変更時)
21+ ```
22+
23+ ` activated: no ` の場合はシェルRCに ` mise activate ` を追加する。詳細は [ mise docs] ( https://mise.jdx.dev/getting-started.html ) を参照。
24+
1425## Bot を追加する
1526
1627### 1. ` bots/ ` にフォルダを作る
@@ -23,7 +34,7 @@ Discord (など) で定期実行などされるBotのmonorepo。
2334
2435``` yaml
2536my-bot :
26- schedule : " 7pm" # 下記参照
37+ schedule : " 7pm" # 下記参照
2738 working_dir : bots/my-bot
2839 run : ./run.sh
2940 log : ~/run/discord-bots/my-bot/log
@@ -51,8 +62,8 @@ schedule の書き方:
51622通りの方法がある:
5263
5364```
54- 1. rollcron.yaml (env_file) → run.sh → program
55- 2. rollcron.yaml → run.sh → sops → program
65+ 1. rollcron.yaml (env_file → .env ) → run.sh → program
66+ 2. rollcron.yaml → run.sh → ( sops → sops.env) → program
5667```
5768
5869SOPS を使う場合は [ docs/sops.md] ( docs/sops.md ) を参照。
@@ -88,7 +99,6 @@ sops を使わない場合:
8899## コマンド
89100
90101``` bash
91- eval " $( direnv export bash) " && COMMAND
92102sops exec-env path/to/sops.env ' echo success!' # sops 鍵検証
93103ssh USER@coolify.utcode.net " sudo -u deploy bash -c 'COMMAND'" # デプロイ先で操作
94104```
Original file line number Diff line number Diff line change 1+ [tools ]
2+ bun = " latest"
3+ node = " 22"
4+ biome = " latest"
5+ sops = " latest"
6+ age = " latest"
7+
8+ [env ]
9+ SOPS_AGE_KEY_FILE = " {{ config_root }}/.age-key"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments