Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add concurrency flag to each job to resolve race conditions #6

Merged
merged 1 commit into from
Feb 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/deploy-existing-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Deploy Existing Release
on:
workflow_dispatch:

# Ensure only one instance of either this or the publish workflow is running at a time
# This ensures that we don't put production into an inconsistent state
concurrency:
group: 'prod-deployment'

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ on:
push:
branches: ["main"]

# Ensure only one instance of the workflow is running at a time
# This helps with race conditions when upserting releases
concurrency:
group: 'main'

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Publish New Release
on:
workflow_dispatch:

# Ensure only one instance of either this or the deploy workflow is running at a time
# This ensures that we don't put production into an inconsistent state
concurrency:
group: 'prod-deployment'

jobs:
deploy:
runs-on: ubuntu-latest
Expand Down
Loading