From dad2ffd196d2e6125849da6d86675a5d256d1ca4 Mon Sep 17 00:00:00 2001 From: Simple Analytics Agent <343555763+simpleanalytics-agent@users.noreply.github.com> Date: Mon, 16 Nov 2026 16:34:48 +0100 Subject: [PATCH 1/2] Document the concurrency group of the deploy workflow Co-Authored-By: Claude Fable 5.2 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index edb30cf..0285a48 100644 --- a/README.md +++ b/README.md @@ -49,3 +49,5 @@ Example usage: image_repo: ghcr.io/${{ github.repository }} image_tag: ${{ github.sha }} ``` + +The deploys of a repository run one at a time. To let two apps deploy at the same time, give each its own `concurrency_group`, for example `concurrency_group: ${{ matrix.config.app }}` in a matrix of apps. Only do this for apps whose deploys can overlap on a host: two `blue_green` apps on the same host can't, the deploy hook writes their Traefik weights through the same temporary file. From 7d05c810536e04408e534253156baaf07919ec2e Mon Sep 17 00:00:00 2001 From: Adriaan van Rossum <1079135+adriaanvanrossum@users.noreply.github.com> Date: Mon, 16 Nov 2026 17:05:11 +0100 Subject: [PATCH 2/2] Add a concurrency group input and remove two unused deploy steps --- .github/workflows/deploy.yml | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 426ad56..6f270ca 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,6 +26,11 @@ on: required: false default: "blue_green" type: string + concurrency_group: + description: Deploys with the same group run one at a time. Empty runs every deploy of the repository one at a time. Give apps their own group only when their deploys can overlap on a host. + required: false + type: string + default: "" jobs: deploy: @@ -33,19 +38,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 concurrency: - group: deploy-${{ inputs.env }} + group: deploy-${{ inputs.concurrency_group }} steps: - - name: Set up Docker Buildx - id: buildx - uses: docker/setup-buildx-action@v4 - - - name: Login to Container Registry - uses: docker/login-action@v4 - with: - registry: ghcr.io - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Trigger deployment webhook with output run: | set -uo pipefail # no "e" because we want to retrieve the curl output