From 73243c1191f39975bbf09a99a42a8387b6bf9de1 Mon Sep 17 00:00:00 2001 From: StanPonomarev Date: Sat, 25 Jul 2026 12:40:02 +0200 Subject: [PATCH] fix ci --- .gitea/workflows/publish-image.yaml | 2 +- README.md | 2 +- tests/test_opencode_deployment.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish-image.yaml b/.gitea/workflows/publish-image.yaml index 7621a7d..b7589ac 100644 --- a/.gitea/workflows/publish-image.yaml +++ b/.gitea/workflows/publish-image.yaml @@ -3,7 +3,7 @@ name: Publish container image on: push: branches: - - master + - main env: REGISTRY: git.krtss.de diff --git a/README.md b/README.md index eae0930..73b15ca 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ has a connected provider. The worker leaves jobs queued while the runtime is una ### Image publishing -Every push to `master` runs `.gitea/workflows/publish-image.yaml` and publishes the image as both +Every push to `main` runs `.gitea/workflows/publish-image.yaml` and publishes the image as both `git.krtss.de/stanponomarev/agentci:latest` and `git.krtss.de/stanponomarev/agentci:`. Configure these repository Actions secrets before the first run: diff --git a/tests/test_opencode_deployment.py b/tests/test_opencode_deployment.py index 8aedb1b..ed02b62 100644 --- a/tests/test_opencode_deployment.py +++ b/tests/test_opencode_deployment.py @@ -156,11 +156,11 @@ def test_compose_has_no_sandbox_security_exceptions() -> None: assert forbidden not in compose -def test_gitea_workflow_publishes_master_images() -> None: +def test_gitea_workflow_publishes_main_images() -> None: lines = (ROOT / ".gitea" / "workflows" / "publish-image.yaml").read_text().splitlines() push = _section(_section(lines, "on", indent=0), "push", indent=2) - assert _sequence(push, "branches", indent=4) == ["master"] + assert _sequence(push, "branches", indent=4) == ["main"] assert _mapping(lines, "env", indent=0)["IMAGE_NAME"] == ( "git.krtss.de/stanponomarev/agentci" )