-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (49 loc) · 1.79 KB
/
cd-ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CD/CI
on: [ push ]
jobs:
commit-stage-workflow:
name: Commit Stage
uses: medicalmundi/marketplace-engine/.github/workflows/commit-stage.yaml@main
with:
triggering-sha: "${{ github.sha }}"
acceptance-stage-workflow:
name: Acceptance Stage
#needs:
#- commit-stage-workflow
uses: medicalmundi/marketplace-engine/.github/workflows/acceptance-stage.yaml@main
with:
triggering-sha: "${{ github.sha }}"
release-stage-workflow:
name: Release Stage
if: startsWith(github.event.ref, 'refs/tags/v')
needs:
- acceptance-stage-workflow
uses: medicalmundi/marketplace-engine/.github/workflows/release-stage.yaml@main
with:
triggering-sha: "${{ github.sha }}"
deploy-on-production-workflow:
name: Deploy on Production server
if: startsWith(github.event.ref, 'refs/tags/v') && ${{ vars.ENABLE_DEPLOY_ON_PRODUCTION == '1' }}
needs:
- commit-stage-workflow
- acceptance-stage-workflow
- release-stage-workflow
# note: racchiudere l'intero if con ${{ }}
# @see https://github.com/actions/runner/issues/491
#if: ${{ vars.ENABLE_DEPLOY_ON_PRODUCTION == '1' }}
secrets: inherit
uses: medicalmundi/marketplace-engine/.github/workflows/deploy-on-production.yaml@main
with:
triggering-sha: "${{ github.sha }}"
deploy-on-stage-workflow:
name: Deploy on Staging server
needs:
- commit-stage-workflow
- acceptance-stage-workflow
# note: racchiudere l'intero if con ${{ }}
# @see https://github.com/actions/runner/issues/491
if: ${{ vars.ENABLE_DEPLOY_ON_STAGING == '1' && github.ref_name == 'main' }}
secrets: inherit
uses: medicalmundi/marketplace-engine/.github/workflows/deploy-on-staging.yaml@main
with:
triggering-sha: "${{ github.sha }}"