Skip to content

Commit b315e9a

Browse files
committed
prevent multiple jobs from deploying to Production at the same time
1 parent d6e8969 commit b315e9a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ jobs:
219219
deploy_prod:
220220
if: github.ref == 'refs/heads/main'
221221
runs-on: ubuntu-latest
222+
concurrency:
223+
group: bmm-web-prod
224+
cancel-in-progress: false
222225
needs: build_dotnet
223226
environment:
224227
name: "prod"
@@ -259,6 +262,9 @@ jobs:
259262
deploy_int:
260263
if: github.ref == 'refs/heads/main'
261264
runs-on: ubuntu-latest
265+
concurrency:
266+
group: bmm-web-int
267+
cancel-in-progress: true
262268
needs: build_dotnet
263269
environment:
264270
name: "Production"

0 commit comments

Comments
 (0)