Skip to content

Commit

Permalink
Cancel previous workflows on update
Browse files Browse the repository at this point in the history
  • Loading branch information
TheReverend403 committed Aug 31, 2024
1 parent b3f55e9 commit ce11323
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@ name: Build and push Docker image
on:
push:
branches:
- 'main'
- "main"
tags:
- 'v*'
- "v*"
pull_request:
branches:
- 'main'
- "main"
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
Expand Down

0 comments on commit ce11323

Please sign in to comment.