-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduction-deployment-pipeline.yml
More file actions
46 lines (40 loc) · 1.24 KB
/
Copy pathproduction-deployment-pipeline.yml
File metadata and controls
46 lines (40 loc) · 1.24 KB
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
name: workflow — trigger comanda production deployment
on:
push:
branches: [master]
jobs:
changes:
runs-on: ubuntu-latest
outputs:
subscriptions: ${{ steps.filter.outputs.subscriptions }}
stores: ${{ steps.filter.outputs.stores }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: detect changed paths
id: filter
uses: dorny/paths-filter@v3
with:
filters: |
subscriptions:
- 'Boundaries/Comanda.Subscriptions/**'
stores:
- 'Boundaries/Comanda.Stores/**'
deploy-subscriptions:
needs: changes
if: needs.changes.outputs.subscriptions == 'true'
uses: ./.github/workflows/deploy-pipeline.yml
with:
service_path: Boundaries/Comanda.Subscriptions
image_name: httpsrichardy/comanda.subscriptions
deploy_url_secret: SUBSCRIPTIONS_PRODUCTION_DEPLOY_URL
secrets: inherit
deploy-stores:
needs: changes
if: needs.changes.outputs.stores == 'true'
uses: ./.github/workflows/deploy-pipeline.yml
with:
service_path: Boundaries/Comanda.Stores
image_name: httpsrichardy/comanda.stores
deploy_url_secret: STORES_PRODUCTION_DEPLOY_URL
secrets: inherit