From 6a040afcc597c0e3a00aa28cb61a1ac82576a067 Mon Sep 17 00:00:00 2001 From: Will Anderson Date: Mon, 11 May 2026 18:56:18 -0500 Subject: [PATCH] fix: force full build when no diff or stage-latest missing --- .gitea/workflows/stage.yaml | 7 ++++++- Dockerfile.stage | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/stage.yaml b/.gitea/workflows/stage.yaml index ae111da..7c91984 100644 --- a/.gitea/workflows/stage.yaml +++ b/.gitea/workflows/stage.yaml @@ -82,7 +82,12 @@ jobs: echo "Changed files:" echo "$CHANGED" NON_ASSET=$(echo "$CHANGED" | grep -v '^src/assets/' | grep -v '^src/shares/' | grep -v '^src/index\.html' | grep -v '^src/about\.html' | grep -v '^src/terms\.html' | grep -v '^src/enterprise-terms\.html' | grep -v '^src/llms\.txt' | grep -v '^migrations/' | grep -v '^scripts/' | grep -v '^tests/' | grep -v '^\.gitea/' | grep -v '^$' || true) - if [ -z "$NON_ASSET" ] && [ "$CHANGED" != "unknown" ]; then + if [ -z "$CHANGED" ] || [ "$CHANGED" = "unknown" ]; then + # No diff (workflow_dispatch with no new commits, or git error). + # Registry may not have a stage-latest base image, so force full build. + echo "asset_only=false" >> "$GITHUB_OUTPUT" + echo "=> No changed files detected (workflow_dispatch?), forcing full build" + elif [ -z "$NON_ASSET" ]; then echo "asset_only=true" >> "$GITHUB_OUTPUT" echo "=> Asset-only change detected, will use fast path" else diff --git a/Dockerfile.stage b/Dockerfile.stage index 8a97125..6c4086e 100644 --- a/Dockerfile.stage +++ b/Dockerfile.stage @@ -9,6 +9,7 @@ # # CI pre-build steps (in stage.yaml): # - neuron-web: built by `elb build` → dist/neuron-landing +# Last rebuilt: 2026-05-11 FROM ubuntu:24.04