Skip to content

Commit

Permalink
cancel previous ci/cd run if exists
Browse files Browse the repository at this point in the history
Signed-off-by: Pranay Valson <[email protected]>
  • Loading branch information
noslav committed Jan 2, 2025
1 parent dc932a8 commit 405e591
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,20 @@ name: docker-ci
on:
push:
branches:
- "main"
- "main"
pull_request:
branches:
- "main"
- "develop"
branches:
- "main"
- "develop"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Artifact Registry/GCR
uses: docker/login-action@v2
with:
Expand Down

0 comments on commit 405e591

Please sign in to comment.