Skip to content

Commit

Permalink
build_*: limit concurrency to 1
Browse files Browse the repository at this point in the history
Similar to the dispatch workflow, there is no reason for the
build-docker and build-qcow2 workflows to run concurrently, as each job
ultimately overwrites an image in ghcr.io or S3. Limiting concurrency to
a single job prevents redundant resource usage, as multiple concurrent
jobs would lead to unnecessary overwrites. Users should cancel any
additional jobs if more than one is running to avoid wasting resources.

Signed-off-by: Simon A. F. Lund <[email protected]>
  • Loading branch information
safl committed Oct 30, 2024
1 parent c99c9af commit db7156a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build_container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
env:
IMAGE_ID: ghcr.io/${{ github.repository_owner }}/spdk-community-ci:poc

concurrency:
group: build_container
cancel-in-progress: false

steps:
- name: Checkout CI repository
uses: actions/[email protected]
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build_qcow2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
source-archive:
runs-on: ubuntu-latest

concurrency:
group: build_qcow2
cancel-in-progress: false

steps:
- name: Checkout SPDK repository
uses: actions/[email protected]
Expand Down Expand Up @@ -54,6 +58,10 @@ jobs:

env:
REPOSITORY_TARBALL_PATH: ${{ github.workspace }}/repository.tar.gz

concurrency:
group: build_qcow2
cancel-in-progress: false

steps:
- name: Download the repository
Expand Down

0 comments on commit db7156a

Please sign in to comment.