fix(ci): serialize build+deploy via concurrency group to prevent Docker exhaustion
This commit is contained in:
@@ -9,6 +9,12 @@ on:
|
|||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Same group as deploy-gke so builds and deploys queue behind each other.
|
||||||
|
# Prevents concurrent Docker daemon exhaustion on the single GCE runner.
|
||||||
|
concurrency:
|
||||||
|
group: neuron-runner
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ on:
|
|||||||
required: false
|
required: false
|
||||||
default: "green"
|
default: "green"
|
||||||
|
|
||||||
|
# Serialize all builds on this runner — concurrent jobs exhaust the Docker daemon.
|
||||||
|
# A queued deploy runs after the in-progress build finishes.
|
||||||
|
concurrency:
|
||||||
|
group: neuron-runner
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user