-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (48 loc) · 1.14 KB
/
orchestration-dev.yml
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
name: Orchestration DEV
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
jobs:
analysis:
name: Analysis
uses: ./.github/workflows/analysis.yml
secrets: inherit
diff:
name: Check for Changes
runs-on: ubuntu-latest
outputs:
backend: ${{ steps.backend.outputs.backend }}
steps:
- name: Check out repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check for changes in backend/
id: backend
run: echo "backend=$(git --no-pager diff --name-only origin/main backend/ | grep ".go\|.sum\|Dockerfile" | head -n 1)" >> $GITHUB_OUTPUT
backend:
name: Backend
needs:
- analysis
- diff
if: contains(needs.diff.outputs.backend, 'backend/')
uses: ./.github/workflows/backend.yml
with:
environment: DEV
secrets: inherit
infrastructure:
name: Infrastructure
needs:
- analysis
- diff
- backend
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/infrastructure.yml
with:
environment: DEV
secrets: inherit