ci(v3): publish isolated docker images

This commit is contained in:
jxxghp
2026-08-07 22:14:34 +08:00
parent 05d15a04f5
commit 0252b27b72
16 changed files with 77 additions and 56 deletions
+20
View File
@@ -29,3 +29,23 @@ def test_install_and_docker_paths_do_not_reference_v2_resources():
assert "resources.v2" not in content
assert "user.sites.v2.bin" not in content
assert "resources.v3" in content
def test_v3_release_workflows_use_isolated_branches_and_images():
"""V3 正式版和 Beta 构建不得写入 V2 或无版本后缀的镜像仓库。"""
build_workflow = (ROOT_DIR / ".github" / "workflows" / "build.yml").read_text(encoding="utf-8")
beta_workflow = (ROOT_DIR / ".github" / "workflows" / "beta.yml").read_text(encoding="utf-8")
assert "name: MoviePilot Builder v3" in build_workflow
assert " - v3" in build_workflow
assert " ref: v3" in build_workflow
assert "${{ secrets.DOCKER_USERNAME }}/moviepilot-v3" in build_workflow
assert "ghcr.io/${{ github.repository }}-v3" in build_workflow
assert "${{ secrets.DOCKER_USERNAME }}/moviepilot-v2" not in build_workflow
assert "${{ secrets.DOCKER_USERNAME }}/moviepilot\n" not in build_workflow
assert "git tag -l 'v3.*'" in build_workflow
assert " ref: v3" in beta_workflow
assert "${{ secrets.DOCKER_USERNAME }}/moviepilot-v3" in beta_workflow
assert "ghcr.io/${{ github.repository }}-v3" in beta_workflow
assert "${{ secrets.DOCKER_USERNAME }}/moviepilot-v2" not in beta_workflow