Skip to content

chore(ci): add concurrency to cancel in-progress builds#13

Merged
victor1234 merged 1 commit intomasterfrom
chore/add-concurrency-to-ci
Aug 27, 2025
Merged

chore(ci): add concurrency to cancel in-progress builds#13
victor1234 merged 1 commit intomasterfrom
chore/add-concurrency-to-ci

Conversation

@victor1234
Copy link
Owner

@victor1234 victor1234 commented Aug 27, 2025

What

  • Add a concurrency group to the Docker CI workflow so that only the latest run
    per branch, tag or PR is executed

Why

  • Without concurrency, multiple pushes in quick succession can trigger parallel
    builds. Older builds may finish later and overwrite tags (e.g. ), or
    consume unnecessary runner minutes

How

  • Define a concurrency group as docker-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} and enable cancel-in-progress: true. This ensures that only the most recent
    workflow run for the same branch/tag/PR continues, while previous runs are
    automatically cancelled

@victor1234 victor1234 merged commit bf64e99 into master Aug 27, 2025
1 check passed
@victor1234 victor1234 deleted the chore/add-concurrency-to-ci branch August 27, 2025 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant