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
This commit is contained in:
2025-11-01 21:07:02 +01:00
parent 9e34c0b474
commit d14d768acd

View File

@@ -467,7 +467,7 @@ jobs:
# Job 2: Build & Push Docker Image # Job 2: Build & Push Docker Image
build: build:
name: Build Docker Image name: Build Docker Image
needs: [changes, test, runtime-base] needs: [changes, runtime-base]
if: needs.changes.outputs.needs_build == 'true' if: needs.changes.outputs.needs_build == 'true'
runs-on: docker-build runs-on: docker-build
outputs: outputs:
@@ -764,9 +764,9 @@ jobs:
# Job 3: Auto-deploy to Staging (only for staging branch) # Job 3: Auto-deploy to Staging (only for staging branch)
deploy-staging: deploy-staging:
name: Auto-deploy to 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 runs-on: ubuntu-latest
if: github.ref_name == 'staging' || github.head_ref == 'staging' || (github.ref_name == '' && contains(github.ref, 'staging'))
environment: environment:
name: staging name: staging
url: https://staging.michaelschiemer.de url: https://staging.michaelschiemer.de