-
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.28 KB
/
production-deployment-pipeline.yml
File metadata and controls
46 lines (40 loc) · 1.28 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 federation production deployment
on:
push:
branches: [master]
jobs:
changes:
runs-on: ubuntu-latest
outputs:
federation_backend: ${{ steps.filter.outputs.federation_backend }}
federation_proxy: ${{ steps.filter.outputs.federation_proxy }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: detect changed paths
id: filter
uses: dorny/paths-filter@v4
with:
filters: |
federation_backend:
- 'Applications/Backend/**'
federation_proxy:
- 'Applications/Proxy/**'
deploy-federation-backend:
needs: changes
if: needs.changes.outputs.federation_backend == 'true'
uses: ./.github/workflows/template-deployment.yml
with:
service_path: Applications/Backend
image_name: httpsrichardy/federation
deploy_url_secret: BACKEND_PRODUCTION_DEPLOY_WEBHOOK_URL
secrets: inherit
deploy-federation-proxy:
needs: changes
if: needs.changes.outputs.federation_proxy == 'true'
uses: ./.github/workflows/template-deployment.yml
with:
service_path: Applications/Proxy
image_name: httpsrichardy/federation.proxy
deploy_url_secret: PROXY_PRODUCTION_DEPLOY_WEBHOOK_URL
secrets: inherit