Skip to content

Commit 3d192d9

Browse files
authored
CI: Add a concurrency tag when updating the image. (#70)
If multiple commits are merged rapidly, there is not much point in continuing to build & push an old image (not to mention the race condition that occurs). Only keep the image from the last commit.
1 parent 76ea154 commit 3d192d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-ais-ci-image.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ on:
88
- develop
99
workflow_dispatch:
1010
# Requires write access to trigger.
11-
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
1214
permissions:
1315
contents: read
1416
packages: write

0 commit comments

Comments
 (0)