Skip to content

Commit a75ecd2

Browse files
committed
CD: Run one job per repo at a time
Recently started deploying to two apps in the same repository[1], which causes a race condition as the two deploys start at the same time, but need to be ordered to avoid conflicts[2]. [1] 25f7cc3 [2] https://github.com/navapbc/template-application-rails/actions/runs/14063004743/attempts/1
1 parent eb4bd8b commit a75ecd2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/cd.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
app: paidleave
2424
- repo: navapbc/pfml-starter-kit-app
2525
app: demo
26+
concurrency:
27+
group: cd-${{ matrix.project.repo }}
2628
steps:
2729
- name: Checkout project repo
2830
uses: actions/checkout@v4

0 commit comments

Comments
 (0)