Merge pull request #275 from MedicalMundi/dependabot/composer/main/do… #1102
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}" |