AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
ci(docker): limit TCR sync to releases
tianma-if993307e788ee
diff --git a/.github/workflows/docker-tcr-mirror.yml b/.github/workflows/docker-tcr-mirror.ymlindex b818db78..4c93e17e 100644--- a/.github/workflows/docker-tcr-mirror.yml+++ b/.github/workflows/docker-tcr-mirror.yml@@ -1,11 +1,6 @@name: Build Tencent TCR image through CNBon:- workflow_run:- workflows:- - Build and publish Docker image- types:- - completedrelease:types:- published@@ -29,17 +24,7 @@ concurrency:jobs:sync-source:- if: >-- github.repository == 'tianma-if/edgeever' &&- (- github.event_name == 'release' ||- github.event_name == 'workflow_dispatch' ||- (- github.event_name == 'workflow_run' &&- github.event.workflow_run.conclusion == 'success' &&- github.event.workflow_run.event == 'push'- )- )+ if: github.repository == 'tianma-if/edgeever'name: Trigger asynchronous Tencent-side image buildruns-on: ubuntu-latesttimeout-minutes: 5@@ -49,16 +34,12 @@ jobs:env:EVENT_NAME: ${{ github.event_name }}RELEASE_TAG: ${{ github.event.release.tag_name }}- WORKFLOW_SHA: ${{ github.event.workflow_run.head_sha }}INPUT_SOURCE_REF: ${{ inputs.source_ref }}INPUT_DESTINATION_REF: ${{ inputs.destination_ref }}run: |if [[ "${EVENT_NAME}" == "release" ]]; thensource_ref="${RELEASE_TAG}"destination_ref="${RELEASE_TAG}"- elif [[ "${EVENT_NAME}" == "workflow_run" ]]; then- source_ref="${WORKFLOW_SHA}"- destination_ref="main"elsesource_ref="${INPUT_SOURCE_REF}"destination_ref="${INPUT_DESTINATION_REF}"diff --git a/scripts/docker-release.test.mjs b/scripts/docker-release.test.mjsindex a23de033..ab7cd3e8 100644--- a/scripts/docker-release.test.mjs+++ b/scripts/docker-release.test.mjs@@ -117,11 +117,10 @@ describe("Docker release contract", () => {expect(mirrorWorkflow).toContain("name: Build Tencent TCR image through CNB",);- expect(mirrorWorkflow).toContain("workflow_run:");+ expect(mirrorWorkflow).not.toContain("workflow_run:");expect(mirrorWorkflow).toContain("release:");- expect(mirrorWorkflow).toContain(- "github.event.workflow_run.event == 'push'",- );+ expect(mirrorWorkflow).toContain("types:\n - published");+ expect(mirrorWorkflow).toContain("workflow_dispatch:");expect(mirrorWorkflow).toContain("secrets.CNB_TCR_BUILD_PUSH_TOKEN");expect(mirrorWorkflow).toContain("https://cnb.cool/tianma-if/edgeever");expect(mirrorWorkflow).toContain('"HEAD:${destination}"');