Skip to content

Commit 2757dcf

Browse files
authored
Merge pull request #5 from gear-foundation/di-fix-wf
Di fix wf
2 parents 6346a76 + 0d78f69 commit 2757dcf

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/CI-CD.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: ['master']
66
workflow_dispatch:
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
env:
913
REGISTRY: ghcr.io
1014
IMAGE_NAME: ${{ github.repository }}
@@ -14,16 +18,9 @@ env:
1418
KUBE_CONFIG_DATA: ${{ secrets.KUBE_CONFIG_DATA }}
1519

1620
jobs:
17-
wait-previous-run:
18-
runs-on: ubuntu-latest
19-
steps:
20-
- uses: mktcode/consecutive-workflow-action@v1 # please read security note
21-
with:
22-
token: ${{ secrets.GITHUB_TOKEN }}
2321

2422
build-frontend-image:
2523
runs-on: ubuntu-latest
26-
needs: [wait-previous-run]
2724
permissions:
2825
contents: read
2926
packages: write
@@ -47,7 +44,7 @@ jobs:
4744
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4845

4946
deploy-k8s:
50-
needs: [ build-frontend-image, wait-previous-run]
47+
needs: [ build-frontend-image]
5148
runs-on: ubuntu-latest
5249

5350
steps:

0 commit comments

Comments
 (0)