From 486d1a8848d87bbf289f5fff9aeeacfa4f378155 Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Tue, 5 May 2026 21:09:43 +0200 Subject: [PATCH] fix(ci): always update gitops and ensure high-performance-latest tag push - Change if: success() to if: always() on gitops update step - Add final fallback push with no cache if all builds fail - Ensure high-performance-latest is always pushed even on partial failures --- .gitea/workflows/build.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 31a33c7..ab743cb 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -212,7 +212,15 @@ jobs: done echo "Falling back to build without cache export for ${{ matrix.service }}" - build_without_cache_export + if ! build_without_cache_export; then + echo "Final fallback: push tags without cache" + docker buildx build --push \ + -f Dockerfile.simple \ + --build-arg SERVICE_NAME=${{ matrix.service }} \ + -t "$REGISTRY_HOSTPORT/nxtgauge-rust-${{ matrix.service }}:${{ gitea.sha }}" \ + -t "$REGISTRY_HOSTPORT/nxtgauge-rust-${{ matrix.service }}:high-performance-latest" \ + . + fi - name: Prune old image tags (keep latest 1 SHA) if: success() @@ -231,7 +239,7 @@ jobs: --keep 1 - name: Update GitOps and trigger deployment - if: success() + if: always() continue-on-error: true env: GITEOPS_REPO: ${{ secrets.GITEOPS_REPO }}