From 94ae3bc08249e8cb880226fb4fcdd1767e15c396 Mon Sep 17 00:00:00 2001 From: dev-lead Date: Sun, 10 May 2026 21:29:33 -0700 Subject: [PATCH] ci(C-3): fix YAML parser-rejection in publish-canvas-image.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Mechanical porter inserted a duplicate `env:` block in .gitea/workflows/publish-canvas-image.yml — the file already had `env: { IMAGE_NAME: ghcr.io/molecule-ai/canvas }` so the second `env: { GITHUB_SERVER_URL: ... }` block triggered Gitea's parser error "yaml: mapping key 'env' already defined". Merged the two blocks into one. Also clarified the dropped workflow_dispatch comment that the porter left dangling above `permissions:`. Verified via fresh `docker logs molecule-gitea-1 --since 5m` after push — no new parser-rejection warnings for publish-canvas-image.yml. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/publish-canvas-image.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/publish-canvas-image.yml b/.gitea/workflows/publish-canvas-image.yml index f9d61214..a044b678 100644 --- a/.gitea/workflows/publish-canvas-image.yml +++ b/.gitea/workflows/publish-canvas-image.yml @@ -36,16 +36,19 @@ on: # platform-only / docs-only / MCP-only merges. - 'canvas/**' - '.gitea/workflows/publish-canvas-image.yml' - # Manual trigger: use after a non-canvas merge that still needs a fresh - # image (e.g. a Dockerfile change lives outside the canvas/ tree). + # NOTE (Gitea port): the original GitHub workflow had a + # `workflow_dispatch:` manual trigger for the + # non-canvas-merge-but-need-fresh-image scenario. Dropped in the + # Gitea port (1.22.6 parser-finicky). Manual rebuilds require + # pushing an empty commit to canvas/ or running the operator-host + # build directly. + permissions: contents: read packages: write # required to push to ghcr.io/${{ github.repository_owner }}/* env: IMAGE_NAME: ghcr.io/molecule-ai/canvas - -env: GITHUB_SERVER_URL: https://git.moleculesai.app jobs: