add concurrency
This commit is contained in:
Родитель
e34caf44b8
Коммит
91769e87eb
|
@ -20,6 +20,9 @@ jobs:
|
|||
name: 'staging'
|
||||
if: "!contains(github.ref, 'refs/heads/main')"
|
||||
uses: ./.github/workflows/template-api.yml
|
||||
concurrency:
|
||||
group: staging
|
||||
cancel-in-progress: true
|
||||
secrets: inherit
|
||||
with:
|
||||
environment: staging
|
||||
|
@ -28,6 +31,9 @@ jobs:
|
|||
name: 'prod'
|
||||
if: contains(github.ref, 'refs/heads/main')
|
||||
uses: ./.github/workflows/template-api.yml
|
||||
concurrency:
|
||||
group: prod
|
||||
cancel-in-progress: true
|
||||
secrets: inherit
|
||||
with:
|
||||
environment: prod
|
||||
|
|
|
@ -43,6 +43,9 @@ jobs:
|
|||
needs: build
|
||||
if: "!contains(github.ref, 'refs/heads/main')"
|
||||
uses: ./.github/workflows/template-hub.yml
|
||||
concurrency:
|
||||
group: staging
|
||||
cancel-in-progress: true
|
||||
secrets: inherit
|
||||
with:
|
||||
environment: staging
|
||||
|
@ -52,6 +55,9 @@ jobs:
|
|||
needs: build
|
||||
if: contains(github.ref, 'refs/heads/main')
|
||||
uses: ./.github/workflows/template-hub.yml
|
||||
concurrency:
|
||||
group: prod
|
||||
cancel-in-progress: true
|
||||
secrets: inherit
|
||||
with:
|
||||
environment: prod
|
|
@ -67,6 +67,9 @@ jobs:
|
|||
needs: build
|
||||
if: "!contains(github.ref, 'refs/heads/main')"
|
||||
uses: ./.github/workflows/template-web.yml
|
||||
concurrency:
|
||||
group: staging
|
||||
cancel-in-progress: true
|
||||
secrets: inherit
|
||||
with:
|
||||
environment: staging
|
||||
|
@ -76,6 +79,9 @@ jobs:
|
|||
needs: build
|
||||
if: contains(github.ref, 'refs/heads/main')
|
||||
uses: ./.github/workflows/template-web.yml
|
||||
concurrency:
|
||||
group: prod
|
||||
cancel-in-progress: true
|
||||
secrets: inherit
|
||||
with:
|
||||
environment: prod
|
||||
|
|
|
@ -9,7 +9,7 @@ jobs:
|
|||
buildPushDeploy:
|
||||
environment:
|
||||
name: ${{ inputs.environment }}
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче