Skip to content

Commit df74a1c

Browse files
committed
limit concurrent deployment workflows
serializes multiple outstanding deploys if PRs are merged before the last deploy finishes to avoid multiple helm deploys racing with each other
1 parent 4579c77 commit df74a1c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/cd.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77

88
name: Continuous Deployment
99

10+
# only allow one deploy workflow to be running at a time
11+
# serializes multiple outstanding deploys if PRs are merged before the last deploy finishes
12+
# ref: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency
13+
concurrency: deploy
14+
1015
# Only trigger the workflow when pushing to master or a label is applied to a
1116
# Pull Request
1217
on:

0 commit comments

Comments
 (0)