Skip to content

Commit 30646f3

Browse files
refactor: this commit centralizes production deployment pipelines by service
1 parent db6e709 commit 30646f3

3 files changed

Lines changed: 46 additions & 16 deletions

File tree

File renamed without changes.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: workflow — trigger comanda production deployment
2+
3+
on:
4+
push:
5+
branches: [master]
6+
7+
jobs:
8+
changes:
9+
runs-on: ubuntu-latest
10+
outputs:
11+
subscriptions: ${{ steps.filter.outputs.subscriptions }}
12+
stores: ${{ steps.filter.outputs.stores }}
13+
14+
steps:
15+
- name: checkout
16+
uses: actions/checkout@v4
17+
18+
- name: detect changed paths
19+
id: filter
20+
uses: dorny/paths-filter@v3
21+
with:
22+
filters: |
23+
subscriptions:
24+
- 'Boundaries/Comanda.Subscriptions/**'
25+
stores:
26+
- 'Boundaries/Comanda.Stores/**'
27+
28+
deploy-subscriptions:
29+
needs: changes
30+
if: needs.changes.outputs.subscriptions == 'true'
31+
uses: ./.github/workflows/deploy-pipeline.yml
32+
with:
33+
service_path: Boundaries/Comanda.Subscriptions
34+
image_name: httpsrichardy/comanda.subscriptions
35+
deploy_url_secret: SUBSCRIPTIONS_PRODUCTION_DEPLOY_URL
36+
secrets: inherit
37+
38+
deploy-stores:
39+
needs: changes
40+
if: needs.changes.outputs.stores == 'true'
41+
uses: ./.github/workflows/deploy-pipeline.yml
42+
with:
43+
service_path: Boundaries/Comanda.Stores
44+
image_name: httpsrichardy/comanda.stores
45+
deploy_url_secret: STORES_PRODUCTION_DEPLOY_URL
46+
secrets: inherit

.github/workflows/stores-deployment-pipeline.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)