Skip to content

Commit

Permalink
Add workflow to handle merging to main
Browse files Browse the repository at this point in the history
  • Loading branch information
kilemensi committed Oct 7, 2024
1 parent 9ac5eff commit 89c8101
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI/CD [Main]

on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "Dockerfile"
- "apps/**"
- "packages/**"

# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: "${{ github.workflow }} @ ${{ github.ref }}"
cancel-in-progress: true

jobs:
ci:
name: CI
uses: ./.github/workflows/_ci.yaml

apps-path-filter:
needs:
- ci
name:
uses: ./.github/workflows/_app-path-filter.yaml

cd-dev:
needs:
- apps-path-filter
if: ${{ needs.apps-path-filter.outputs.apps == 'true' }}
uses: ./.github/workflows/_cd-dev.yaml
secrets: inherit

cd-prod:
needs:
- apps-path-filter
if: ${{ needs.apps-path-filter.outputs.apps == 'true' }}
uses: ./.github/workflows/_cd-prod.yaml
secrets: inherit

0 comments on commit 89c8101

Please sign in to comment.