Harborプロジェクトをknative-funcに変更
Validate and publish container image / build (pull_request) Successful in 3m24s
Validate and publish container image / build (pull_request) Successful in 3m24s
This commit is contained in:
@@ -10,7 +10,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY: harbor.mukan.0am.jp
|
REGISTRY: harbor.mukan.0am.jp
|
||||||
IMAGE_NAME: harbor.mukan.0am.jp/services/email-to-discord
|
IMAGE_NAME: harbor.mukan.0am.jp/knative-func/email-to-discord
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|||||||
@@ -85,8 +85,8 @@ cp .env.example .env
|
|||||||
`container_tools` はイメージをビルドせず、レジストリからpullして起動します。このリポジトリでは、`main` へのpush時にGitea Actionsが次のイメージをHarborへ公開します。
|
`container_tools` はイメージをビルドせず、レジストリからpullして起動します。このリポジトリでは、`main` へのpush時にGitea Actionsが次のイメージをHarborへ公開します。
|
||||||
|
|
||||||
```text
|
```text
|
||||||
harbor.mukan.0am.jp/services/email-to-discord:<commit-sha>
|
harbor.mukan.0am.jp/knative-func/email-to-discord:<commit-sha>
|
||||||
harbor.mukan.0am.jp/services/email-to-discord:latest
|
harbor.mukan.0am.jp/knative-func/email-to-discord:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
### 1. Gitea Actions Secretsの設定
|
### 1. Gitea Actions Secretsの設定
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
services:
|
services:
|
||||||
email-to-discord:
|
email-to-discord:
|
||||||
image: harbor.mukan.0am.jp/services/email-to-discord:latest
|
image: harbor.mukan.0am.jp/knative-func/email-to-discord:latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
extra_hosts:
|
extra_hosts:
|
||||||
- "host.docker.internal:host-gateway"
|
- "host.docker.internal:host-gateway"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ class ContainerToolsDeploymentTests(unittest.TestCase):
|
|||||||
compose = (REPOSITORY_ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
compose = (REPOSITORY_ROOT / "docker-compose.yml").read_text(encoding="utf-8")
|
||||||
|
|
||||||
self.assertIn(
|
self.assertIn(
|
||||||
"image: harbor.mukan.0am.jp/services/email-to-discord:latest",
|
"image: harbor.mukan.0am.jp/knative-func/email-to-discord:latest",
|
||||||
compose,
|
compose,
|
||||||
)
|
)
|
||||||
self.assertIn("host.docker.internal:host-gateway", compose)
|
self.assertIn("host.docker.internal:host-gateway", compose)
|
||||||
|
|||||||
Reference in New Issue
Block a user