From 2028c18010ae4c06b7ca4ccd554d7f2baa0a45ba Mon Sep 17 00:00:00 2001 From: Guilherme Gomes Date: Wed, 8 Jul 2026 13:01:41 -0300 Subject: [PATCH 1/2] ci(docker): build & publish :develop image on push to develop (EVO-1998) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The publish workflow only triggered on push to main and version tags, so merges to develop never rebuilt the evoapicloud/evo-ai-processor-community :develop image — staging (which runs :develop) silently ran stale code. - Add develop to the push branch trigger. - Add a develop case to the manifest tag resolver so it publishes :develop (and :develop- for traceability), mirroring main. - Add workflow_dispatch for manual rebuilds. --- .github/workflows/docker-publish.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9c1d113..bb304a3 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -2,10 +2,11 @@ name: Build & Publish Docker Image on: push: - branches: [main] + branches: [main, develop] tags: ["v*.*.*"] pull_request: branches: [main, develop] + workflow_dispatch: permissions: contents: read @@ -140,6 +141,8 @@ jobs: TAGS="${IMAGE}:${VERSION},${IMAGE}:latest" elif [[ "${GH_REF}" == refs/heads/main ]]; then TAGS="${IMAGE}:latest,${IMAGE}:main-${SHA_SHORT}" + elif [[ "${GH_REF}" == refs/heads/develop ]]; then + TAGS="${IMAGE}:develop,${IMAGE}:develop-${SHA_SHORT}" fi echo "tags=${TAGS}" >> "$GITHUB_OUTPUT" From fb8b237522869a1149c053b4019b17e7749f7021 Mon Sep 17 00:00:00 2001 From: Guilherme Gomes Date: Wed, 8 Jul 2026 13:06:19 -0300 Subject: [PATCH 2/2] ci(docker): fail fast when no publish tags are derived (EVO-1998) workflow_dispatch can now run from any ref; a run on an unsupported ref would leave TAGS empty and fail confusingly in the manifest step after building. Fail early in tag resolution with a clear message instead. --- .github/workflows/docker-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index bb304a3..97a1f78 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -143,6 +143,9 @@ jobs: TAGS="${IMAGE}:latest,${IMAGE}:main-${SHA_SHORT}" elif [[ "${GH_REF}" == refs/heads/develop ]]; then TAGS="${IMAGE}:develop,${IMAGE}:develop-${SHA_SHORT}" + else + echo "::error::Unsupported ref ${GH_REF} — no publish tags derived (expected main, develop, or a v* tag)." >&2 + exit 1 fi echo "tags=${TAGS}" >> "$GITHUB_OUTPUT"