diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 56b0090..d65f2da 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -9,6 +9,12 @@ on: - main 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: build: runs-on: ubuntu-latest diff --git a/.gitea/workflows/deploy-gke.yaml b/.gitea/workflows/deploy-gke.yaml index 0f72df0..a7fab40 100644 --- a/.gitea/workflows/deploy-gke.yaml +++ b/.gitea/workflows/deploy-gke.yaml @@ -18,6 +18,12 @@ on: required: false 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: deploy: runs-on: ubuntu-latest