mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
ci(v3): publish isolated docker images
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user