Skip to content

Commit

Permalink
Limit concurrency of external jobs (#324)
Browse files Browse the repository at this point in the history
This limits the concurrency of all dockerhub & deployment jobs, so that
only a single one is allowed to be in-flight at any given time.

See the docs here:
https://docs.github.com/en/actions/using-jobs/using-concurrency
  • Loading branch information
shaldengeki authored Jul 29, 2024
1 parent 5b25c99 commit 6ef3a50
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
push_ark_nova_stats:
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: ark_nova_stats_dockerhub
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -52,6 +55,9 @@ jobs:
deploy_ark_nova_stats:
needs: push_ark_nova_stats
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: ark_nova_stats_production
cancel-in-progress: false
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
runs-on: ubuntu-latest
Expand All @@ -65,6 +71,9 @@ jobs:
push_fitbit_challenges:
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: fitbit_challenges_dockerhub
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -82,6 +91,9 @@ jobs:
push_home_api:
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: home_api_dockerhub
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -98,6 +110,9 @@ jobs:
push_mc_manager:
needs: build
if: ${{ github.ref == 'refs/heads/main' }}
concurrency:
group: mc_manager_dockerhub
cancel-in-progress: false
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down

0 comments on commit 6ef3a50

Please sign in to comment.