This commit is contained in:
1 parent
8d8d4fd5b7
commit
b548d1c71d
3 files changed
+10
-6
No files matched your search
+5
-3
@@ -1,11 +1,13 @@
|
|||||||
when:
|
when:
|
||||||
- event: [push, pull_request, manual]
|
- event: [push, manual]
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
- name: git
|
||||||
image: woodpeckerci/plugin-git:2.9.3
|
image: woodpeckerci/plugin-git:2.9.3
|
||||||
settings:
|
settings:
|
||||||
remote: https://git.oeo.one/justme/WebDrop.git
|
remote:
|
||||||
|
from_secret: gitea_clone_webdrop
|
||||||
|
lfs: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
api-contract:
|
api-contract:
|
||||||
|
|||||||
@@ -3,10 +3,12 @@ when:
|
|||||||
ref: refs/tags/v*
|
ref: refs/tags/v*
|
||||||
|
|
||||||
clone:
|
clone:
|
||||||
git:
|
- name: git
|
||||||
image: woodpeckerci/plugin-git:2.9.3
|
image: woodpeckerci/plugin-git:2.9.3
|
||||||
settings:
|
settings:
|
||||||
remote: https://git.oeo.one/justme/WebDrop.git
|
remote:
|
||||||
|
from_secret: gitea_clone_webdrop
|
||||||
|
lfs: false
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
release-checks:
|
release-checks:
|
||||||
|
|||||||
+1
-1
@@ -34,7 +34,7 @@ CAPTCHA_SECRET=<server-side-secret>
|
|||||||
|
|
||||||
## Woodpecker CI
|
## Woodpecker CI
|
||||||
|
|
||||||
`.woodpecker/ci.yml` 在 push 和 pull request 上运行 API 契约、Core、Web、服务端检查,并解析后端 Compose 配置。每次更新都会构建前端。`.woodpecker/release-backend.yml` 仅响应 `vMAJOR.MINOR.PATCH` SemVer tag;测试通过后构建并推送同名后端镜像 tag。
|
`.woodpecker/ci.yml` 在 push 和手动运行时执行 API 契约、Core、Web、服务端检查,并解析后端 Compose 配置。每次 push 都会构建前端。`.woodpecker/release-backend.yml` 仅响应 `vMAJOR.MINOR.PATCH` SemVer tag;测试通过后构建并推送同名后端镜像 tag。两者都通过 Woodpecker secret `gitea_clone_webdrop` 从 `https://git.oeo.one` 克隆私有仓库。
|
||||||
|
|
||||||
后端镜像发布到 `zot.oeo.one/justme/webdrop-api`。在 Woodpecker 仓库配置 tag 事件可用的 secrets `registry_username`、`registry_password`。Docker Buildx 发布步骤以特权模式运行;Woodpecker Agent 必须将仓库设为 security trusted,并把 `woodpeckerci/plugin-docker-buildx:5.0.0` 加入服务端的 `WOODPECKER_PLUGINS_PRIVILEGED`。使用已发布镜像时,在 `.env` 中设置 `WEBDROP_IMAGE_TAG`;仓库名已填入 `.env.example`。
|
后端镜像发布到 `zot.oeo.one/justme/webdrop-api`。在 Woodpecker 仓库配置 tag 事件可用的 secrets `registry_username`、`registry_password`。Docker Buildx 发布步骤以特权模式运行;Woodpecker Agent 必须将仓库设为 security trusted,并把 `woodpeckerci/plugin-docker-buildx:5.0.0` 加入服务端的 `WOODPECKER_PLUGINS_PRIVILEGED`。使用已发布镜像时,在 `.env` 中设置 `WEBDROP_IMAGE_TAG`;仓库名已填入 `.env.example`。
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user