Skip to content

Commit

Permalink
Restrict workflow concurrency (kserve#3167)
Browse files Browse the repository at this point in the history
Restrict workflow concurrency.

Signed-off-by: vignesh-murugani2i <vignesh.murugan@ideas2it.com>
Signed-off-by: Mopuri, Bharath <bharath_mopuri@intuit.com>
  • Loading branch information
vignesh-murugani2i authored and Mopuri, Bharath committed Oct 23, 2023
1 parent 2254212 commit ebfcffb
Show file tree
Hide file tree
Showing 22 changed files with 253 additions and 145 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/agent-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
env:
IMAGE_NAME: agent

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/alibiexplainer-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ on:
pull_request:

env:
IMAGE_NAME: alibi-explainer
IMAGE_NAME: alibi-explainer

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Run tests.
Expand Down Expand Up @@ -59,7 +63,7 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Export version variable
- name: Export version variable
run: |
IMAGE_ID=kserve/$IMAGE_NAME
Expand All @@ -86,5 +90,3 @@ jobs:
file: python/alibiexplainer.Dockerfile
push: true
tags: ${{ env.IMAGE_ID }}:${{ env.VERSION }}


4 changes: 4 additions & 0 deletions .github/workflows/artexplainer-docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
env:
IMAGE_NAME: art-explainer

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/cherry-pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
- master
types: ["closed"]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
cherry_pick_release_0_10:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/custom-model-grpc-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
env:
IMAGE_NAME: custom-model-grpc

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
# Run tests.
# See also https://docs.docker.com/docker-hub/builds/automated-testing/
Expand Down Expand Up @@ -72,4 +76,3 @@ jobs:
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
Loading

0 comments on commit ebfcffb

Please sign in to comment.