Skip to content

Commit

Permalink
chore: make sure only one deployment happens at a time (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
gunar authored Jun 28, 2021
1 parent b2585dd commit 48722bd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches:
- main

# When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled.
concurrency: staging_environment

jobs:
test_and_build:
name: Test and Build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/push-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
push:
branches:
- production

# When a concurrent job or workflow is queued, if another job or workflow using the same concurrency group in the repository is in progress, the queued job or workflow will be pending. Any previously pending job or workflow in the concurrency group will be canceled.
concurrency: production_environment

jobs:
test_and_build:
name: Test and Build
Expand Down

0 comments on commit 48722bd

Please sign in to comment.