From d14d768acd5dacf030843a6e608d07e6b5f42bb6 Mon Sep 17 00:00:00 2001 From: Michael Schiemer Date: Sat, 1 Nov 2025 21:07:02 +0100 Subject: [PATCH] fix(ci): Remove test dependency from build job to fix workflow execution - Removed 'test' from build job needs array - Build job now depends only on [changes, runtime-base] - Fixes issue where build was waiting for skipped test job - deploy-staging now correctly waits for build completion --- .gitea/workflows/build-image.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml index 3d8dc98e..a1b037da 100644 --- a/.gitea/workflows/build-image.yml +++ b/.gitea/workflows/build-image.yml @@ -467,7 +467,7 @@ jobs: # Job 2: Build & Push Docker Image build: name: Build Docker Image - needs: [changes, test, runtime-base] + needs: [changes, runtime-base] if: needs.changes.outputs.needs_build == 'true' runs-on: docker-build outputs: @@ -764,9 +764,9 @@ jobs: # Job 3: Auto-deploy to Staging (only for staging branch) deploy-staging: name: Auto-deploy to Staging - needs: build + needs: [changes, build, runtime-base] + if: (github.ref_name == 'staging' || github.head_ref == 'staging' || (github.ref_name == '' && contains(github.ref, 'staging'))) && needs.changes.outputs.needs_build == 'true' runs-on: ubuntu-latest - if: github.ref_name == 'staging' || github.head_ref == 'staging' || (github.ref_name == '' && contains(github.ref, 'staging')) environment: name: staging url: https://staging.michaelschiemer.de