Agents Webhookサテライト連携を追加 #1

Merged
yotta merged 5 commits from codex/add-agents-webhook-satellite into main 2026-07-18 00:14:29 +00:00
Owner

変更内容

  • 既存のDiscord Webhook通知を維持したまま、Agents Webhookへのメール転送を追加
  • Discordのみ、Agentsのみ、両方の3構成を環境変数で選択可能に変更
  • Agentsへ source / channel_id / prompt とBearerトークンを送信
  • 複数通知先の全送信成功後にメールを既読化
  • Gitea Actionsでテスト済みruntimeイメージをビルドし、main push時にHarborへSHAタグと latest をpush
  • docker-compose.yml を container_tools 対応の公開済みイメージ構成へ変更
  • ローカルビルド用Composeを docker-compose.local.yml へ分離
  • コンテナからAgentsホストへ到達する host.docker.internal:host-gateway 設定を追加
  • .env、起動スクリプト、READMEを更新

背景・原因

初回差分はDockerfileを含んでいましたが、container_tools はビルドを行わず、uild / container_name / nv_file を利用できません。公開済みイメージとHarborへpushするCIが不足していたため、そのままではWebhookサテライトとしてデプロイできませんでした。

影響

既存の DISCORD_WEBHOOK_URL 構成は維持されます。マージ後、Gitea Actionsが harbor.mukan.0am.jp/knative-func/email-to-discord: と latest を公開し、実値へ置換したCompose全文を container_tools に渡してデプロイできます。

デプロイ前提

このリポジトリのGitea Actions Secretsに HARBOR_USERNAME と HARBOR_PASSWORD を登録する必要があります。2026-07-18時点ではリポジトリSecretが未登録のため、マージ前に設定が必要です。

検証

## 変更内容 - 既存のDiscord Webhook通知を維持したまま、Agents Webhookへのメール転送を追加 - Discordのみ、Agentsのみ、両方の3構成を環境変数で選択可能に変更 - Agentsへ source / channel_id / prompt とBearerトークンを送信 - 複数通知先の全送信成功後にメールを既読化 - Gitea Actionsでテスト済みruntimeイメージをビルドし、main push時にHarborへSHAタグと latest をpush - docker-compose.yml を container_tools 対応の公開済みイメージ構成へ変更 - ローカルビルド用Composeを docker-compose.local.yml へ分離 - コンテナからAgentsホストへ到達する host.docker.internal:host-gateway 設定を追加 - .env、起動スクリプト、READMEを更新 ## 背景・原因 初回差分はDockerfileを含んでいましたが、container_tools はビルドを行わず、uild / container_name / nv_file を利用できません。公開済みイメージとHarborへpushするCIが不足していたため、そのままではWebhookサテライトとしてデプロイできませんでした。 ## 影響 既存の DISCORD_WEBHOOK_URL 構成は維持されます。マージ後、Gitea Actionsが harbor.mukan.0am.jp/knative-func/email-to-discord:<commit-sha> と latest を公開し、実値へ置換したCompose全文を container_tools に渡してデプロイできます。 ## デプロイ前提 このリポジトリのGitea Actions Secretsに HARBOR_USERNAME と HARBOR_PASSWORD を登録する必要があります。2026-07-18時点ではリポジトリSecretが未登録のため、マージ前に設定が必要です。 ## 検証 - ローカル単体テスト: 9件成功 - Gitea Actions run 383: Docker runtimeイメージの実ビルド成功 - Dockerビルド内単体テスト: 9件成功 - git diff --check: 成功 - start.sh / start.ps1 構文検証: 成功 - Actions: https://gitea.mukan.0am.jp/yotta/EmailToDiscord/actions/runs/383
yotta added 1 commit 2026-07-17 23:31:46 +00:00
yotta marked the pull request as work in progress 2026-07-17 23:32:03 +00:00
yotta marked the pull request as ready for review 2026-07-17 23:32:37 +00:00
yotta added 1 commit 2026-07-17 23:42:21 +00:00
コンテナイメージ公開CIを追加
Validate and publish container image / build (pull_request) Failing after 1m31s
c14716c46b
yotta added 1 commit 2026-07-17 23:44:48 +00:00
CIのGitea checkoutを修正
Validate and publish container image / build (pull_request) Has been cancelled
bebb0016b6
yotta added 1 commit 2026-07-17 23:54:36 +00:00
コンテナCIのビルドを最適化
Validate and publish container image / build (pull_request) Successful in 6m2s
233319876b
yotta marked the pull request as work in progress 2026-07-18 00:04:18 +00:00
yotta added 1 commit 2026-07-18 00:08:55 +00:00
Harborプロジェクトをknative-funcに変更
Validate and publish container image / build (pull_request) Successful in 3m24s
d906dc05a9
yotta marked the pull request as ready for review 2026-07-18 00:14:24 +00:00
yotta merged commit 29904df87b into main 2026-07-18 00:14:29 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yotta/EmailToDiscord#1