-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (42 loc) · 1.56 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
name: CD/CI
on: [ push ]
jobs:
commit-stage-workflow:
name: Commit Stage
uses: medicalmundi/marketplace-accounts/.github/workflows/commit-stage.yaml@main
with:
triggering-sha: "${{ github.sha }}"
acceptance-stage-workflow:
name: Acceptance Stage
#needs:
#- commit-stage-workflow
uses: medicalmundi/marketplace-accounts/.github/workflows/acceptance-stage.yaml@main
with:
triggering-sha: "${{ github.sha }}"
# add release here
# 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-account/.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-accounts/.github/workflows/deploy-on-staging.yaml@main
with:
triggering-sha: "${{ github.sha }}"