-
Notifications
You must be signed in to change notification settings - Fork 115
152 lines (147 loc) · 6.93 KB
/
pre-merge.yml
File metadata and controls
152 lines (147 loc) · 6.93 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
---
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
name: Pre-Merge CI Pipeline
on: # yamllint disable-line rule:truthy
pull_request:
branches:
- main
- release-*
workflow_dispatch:
permissions: {}
jobs:
filter:
permissions:
contents: read # needed for actions/checkout
runs-on: ubuntu-latest
outputs:
dlstreamer-pipeline-server_changed: ${{ steps.filter.outputs.dlstreamer-pipeline-server }}
document-ingestion_changed: ${{ steps.filter.outputs.document-ingestion }}
model-registry_changed: ${{ steps.filter.outputs.model-registry }}
object-store_changed: ${{ steps.filter.outputs.object-store }}
chat-question-and-answer_changed: ${{ steps.filter.outputs.chat-question-and-answer }}
visual-pipeline-platform-tool_changed: ${{ steps.filter.outputs.visual-pipeline-platform-tool }}
chat-question-and-answer-core_changed: ${{ steps.filter.outputs.chat-question-and-answer-core }}
time-series-analytics-docs_changed: ${{ steps.filter.outputs.time-series-analytics-docs }}
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set paths filter
id: filter
uses: dorny/paths-filter@4512585405083f25c027a35db413c2b3b9006d50
with:
filters: |
dlstreamer-pipeline-server:
- 'microservices/dlstreamer-pipeline-server/docs/**'
document-ingestion:
- 'microservices/document-ingestion/docs/**'
model-registry:
- 'microservices/model-registry/docs/**'
object-store:
- 'microservices/object-store/docs/**'
chat-question-and-answer:
- 'sample-applications/chat-question-and-answer/docs/**'
visual-pipeline-platform-tool:
- 'tools/visual-pipeline-and-platform-evaluation-tool/docs/**'
chat-question-and-answer-core:
- 'sample-applications/chat-question-and-answer-core/docs/**'
time-series-analytics-docs:
- 'microservices/time-series-analytics/docs/**'
build_dlstreamer-pipeline-server:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.dlstreamer-pipeline-server_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: microservices/dlstreamer-pipeline-server
build_document-ingestion:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.document-ingestion_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: microservices/document-ingestion
build_model-registry:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.model-registry_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: microservices/model-registry
build_object-store:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.object-store_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: microservices/object-store
build_chat-question-and-answer:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.chat-question-and-answer_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: sample-applications/chat-question-and-answer
build_visual-pipeline-platform-tool:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.visual-pipeline-platform-tool_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: tools/visual-pipeline-and-platform-evaluation-tool
build_chat-question-and-answer-core:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.chat-question-and-answer-core_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: sample-applications/chat-question-and-answer-core
build_time-series-analytics-docs:
permissions:
contents: read # needed for actions/checkout
needs: filter
if: ${{ needs.filter.outputs.time-series-analytics-docs_changed == 'true' }}
uses: open-edge-platform/orch-ci/.github/workflows/build-documentation.yml@d690355163684f717d02a1e65650b8401670cd9a
secrets:
SYS_ORCH_GITHUB: ${{ secrets.SYS_ORCH_GITHUB }}
DOC_AWS_ACCESS_KEY_ID: ${{ secrets.DOC_AWS_ACCESS_KEY_ID }}
DOC_AWS_SECRET_ACCESS_KEY: ${{ secrets.DOC_AWS_SECRET_ACCESS_KEY }}
with:
docs_directory: microservices/time-series-analytics
branch_pattern: '^main$' # TimeSeries Analytics Microservice only exists on 'main' branch