From 6ef3a5001f0818e2ee876d24c200dc1525d545ac Mon Sep 17 00:00:00 2001 From: Charles OuGuo Date: Sun, 28 Jul 2024 21:54:40 -0400 Subject: [PATCH] Limit concurrency of external jobs (#324) 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 --- .github/workflows/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ef4ba9c8..d6552bb1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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