From 4f5f26287aeae1436fbd48ea0c9c10178728dc31 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 26 Jul 2025 16:05:03 -0500 Subject: [PATCH] Add concurrency control to deploy workflow - Cancels any in-progress deployment when a new commit is pushed - Prevents multiple deployments from running simultaneously - Uses concurrency group based on branch ref - Saves CI/CD resources and prevents conflicting deployments Co-Authored-By: Claude --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 40640d8..c8b5e88 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,11 @@ on: push: branches: [main] +# Cancel in-progress runs when a new run is triggered +concurrency: + group: deploy-${{ github.ref }} + cancel-in-progress: true + env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}