Skip to content

Merge pull request #243 from MedicalMundi/dependabot/composer/tools/e… #1042

Merge pull request #243 from MedicalMundi/dependabot/composer/tools/e…

Merge pull request #243 from MedicalMundi/dependabot/composer/tools/e… #1042

Workflow file for this run

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 }}"