Skip to content

Commit bd9b970

Browse files
committed
Update build-dev-container.yaml to use concurrency and cancel-in-progress options
1 parent c0b8a10 commit bd9b970

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-dev-container.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- master
77
- develop
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
913
env:
1014
DOCKER_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
1115
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
@@ -63,9 +67,9 @@ jobs:
6367
uses: devcontainers/[email protected]
6468
with:
6569
subFolder: ./templates/${{ matrix.dir }}
66-
imageName: npv2k1/codespace/${{ matrix.dir }}
67-
cacheFrom: npv2k1/codespace/${{ matrix.dir }}:latest
68-
imageTag: ${{ github.ref == 'refs/heads/master' && 'latest' || github.ref_name }}
70+
imageName: npv2k1/codespace
71+
cacheFrom: npv2k1/codespace:${{ matrix.dir }}-${{ github.ref == 'refs/heads/master' && 'latest' || github.ref_name }}
72+
imageTag: ${{ matrix.dir }}-${{ github.ref == 'refs/heads/master' && 'latest' || github.ref_name }}
6973
platform: linux/amd64,linux/arm64
7074
push: always
7175

0 commit comments

Comments
 (0)