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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user